tests: use locate to find files for pyflakes check
authorMatt Mackall <mpm@selenic.com>
Fri, 02 May 2014 00:23:58 -0500
changeset 21221 e3ca21e4d05f
parent 21220 b04a2f49cb55
child 21222 4840abc83970
tests: use locate to find files for pyflakes check Based on a suggestion by Yuya Nishihara
tests/test-check-pyflakes.t
--- a/tests/test-check-pyflakes.t	Thu May 01 19:24:03 2014 -0500
+++ b/tests/test-check-pyflakes.t	Fri May 02 00:23:58 2014 -0500
@@ -5,7 +5,7 @@
 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$ \
+  $ hg locate 'set:**.py or grep("^!#.*python")' 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)