Mercurial > evolve
changeset 5360:8be20dec3aef stable
tests: modernize test-check-pyflakes.t
Using newer hg files instead of hg locate, using null bytes as separators,
excluding thirdparty dir.
Copied from test-check-flake8.t.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sun, 24 May 2020 13:02:48 +0800 |
parents | f4d991ac2cd6 |
children | 3987ce7e9824 |
files | tests/test-check-pyflakes.t |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-check-pyflakes.t Sat Jun 06 21:19:33 2020 +0800 +++ b/tests/test-check-pyflakes.t Sun May 24 13:02:48 2020 +0800 @@ -7,5 +7,7 @@ run pyflakes on all tracked files ending in .py or without a file ending (skipping binary file random-seed) - $ hg locate -I 'set:(**.py or grep("^#!.*python")) - removed()' 2>/dev/null \ - > | xargs pyflakes 2>/dev/null + $ hg files -0 'set:(**.py or grep("^#!.*python")) - removed()' \ + > -X hgext3rd/evolve/thirdparty \ + > 2>/dev/null \ + > | xargs -0 pyflakes 2>/dev/null