Mercurial > evolve
comparison tests/test-check-pyflakes.t @ 5336:2895b026ba88
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 | 824fcba2cdb4 |
children | f354de498737 |
comparison
equal
deleted
inserted
replaced
5335:e5406605d8f5 | 5336:2895b026ba88 |
---|---|
5 $ cd "`dirname "$TESTDIR"`" | 5 $ cd "`dirname "$TESTDIR"`" |
6 | 6 |
7 run pyflakes on all tracked files ending in .py or without a file ending | 7 run pyflakes on all tracked files ending in .py or without a file ending |
8 (skipping binary file random-seed) | 8 (skipping binary file random-seed) |
9 | 9 |
10 $ hg locate -I 'set:(**.py or grep("^#!.*python")) - removed()' 2>/dev/null \ | 10 $ hg files -0 'set:(**.py or grep("^#!.*python")) - removed()' \ |
11 > | xargs pyflakes 2>/dev/null | 11 > -X hgext3rd/evolve/thirdparty \ |
12 > 2>/dev/null \ | |
13 > | xargs -0 pyflakes 2>/dev/null |