Mercurial > public > mercurial-scm > hg
diff tests/test-check-pyflakes.t @ 21208:0e1cbd3d52f7 stable
tests: add repository check for pyflakes test
If this test was run from a tarball with no Mercurial repository, it
would fail because 'hg manifest' didn't work.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 01 May 2014 09:42:23 -0500 |
parents | 779ceb84f4f7 |
children | e3ca21e4d05f |
line wrap: on
line diff
--- a/tests/test-check-pyflakes.t Sat Apr 26 00:38:02 2014 -0700 +++ b/tests/test-check-pyflakes.t Thu May 01 09:42:23 2014 -0500 @@ -1,8 +1,10 @@ - $ "$TESTDIR/hghave" pyflakes || exit 80 +#if test-repo pyflakes + $ cd "`dirname "$TESTDIR"`" 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" contrib/win32/hgwebdir_wsgi.py:*: 'win32traceutil' imported but unused (glob) @@ -16,4 +18,4 @@ tests/hghave.py:*: 'ssl' imported but unused (glob) contrib/win32/hgwebdir_wsgi.py:93: 'from isapi.install import *' used; unable to detect undefined names (glob) - +#endif