comparison tests/test-check-pyflakes.t @ 21221:e3ca21e4d05f

tests: use locate to find files for pyflakes check Based on a suggestion by Yuya Nishihara
author Matt Mackall <mpm@selenic.com>
date Fri, 02 May 2014 00:23:58 -0500
parents 0e1cbd3d52f7
children 4adc090fa2fb
comparison
equal deleted inserted replaced
21220:b04a2f49cb55 21221:e3ca21e4d05f
3 $ cd "`dirname "$TESTDIR"`" 3 $ cd "`dirname "$TESTDIR"`"
4 4
5 run pyflakes on all tracked files ending in .py or without a file ending 5 run pyflakes on all tracked files ending in .py or without a file ending
6 (skipping binary file random-seed) 6 (skipping binary file random-seed)
7 7
8 $ hg manifest 2>/dev/null | egrep "\.py$|^[^.]*$" | grep -v /random_seed$ \ 8 $ hg locate 'set:**.py or grep("^!#.*python")' 2>/dev/null \
9 > | xargs pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py" 9 > | xargs pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py"
10 contrib/win32/hgwebdir_wsgi.py:*: 'win32traceutil' imported but unused (glob) 10 contrib/win32/hgwebdir_wsgi.py:*: 'win32traceutil' imported but unused (glob)
11 setup.py:*: 'sha' imported but unused (glob) 11 setup.py:*: 'sha' imported but unused (glob)
12 setup.py:*: 'zlib' imported but unused (glob) 12 setup.py:*: 'zlib' imported but unused (glob)
13 setup.py:*: 'bz2' imported but unused (glob) 13 setup.py:*: 'bz2' imported but unused (glob)