Patchwork [1,of,4] test-pyflakes: use "hg locate" to collect target files

login
register
mail settings
Submitter Yuya Nishihara
Date May 2, 2014, 4:28 a.m.
Message ID <ab91be7bb1a363e7ff32.1399004937@gimlet>
Download mbox | patch
Permalink /patch/4482/
State Changes Requested
Headers show

Comments

Yuya Nishihara - May 2, 2014, 4:28 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1398742817 -32400
#      Tue Apr 29 12:40:17 2014 +0900
# Branch stable
# Node ID ab91be7bb1a363e7ff320bece1e238dcf8d634e1
# Parent  cadad384c97c7956c98f3c9b92d8cc40fa16d93b
test-pyflakes: use "hg locate" to collect target files

"locate" can be fine-tuned by fileset pattern.

Patch

diff --git a/tests/test-check-pyflakes.t b/tests/test-check-pyflakes.t
--- a/tests/test-check-pyflakes.t
+++ b/tests/test-check-pyflakes.t
@@ -5,8 +5,8 @@ 
 run pyflakes on all tracked files ending in .py or without a file ending
 (skipping binary file random-seed)
 
-  $ hg manifest 2>/dev/null | egrep "\.py$|^[^.]*$" | grep -v /random_seed$ \
-  > | xargs pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py"
+  $ hg locate -r. -I '**.py' -I 'relre:^[^.]*$' -X 'relre:/random_seed$' \
+  > 2>/dev/null | xargs pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py"
   contrib/win32/hgwebdir_wsgi.py:*: 'win32traceutil' imported but unused (glob)
   setup.py:*: 'sha' imported but unused (glob)
   setup.py:*: 'zlib' imported but unused (glob)