Mercurial > hg-stable
changeset 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 | b04a2f49cb55 |
children | 4840abc83970 |
files | tests/test-check-pyflakes.t |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)