Show More
@@ -1,33 +1,31 b'' | |||||
1 | $ check_code="$TESTDIR"/../contrib/check-code.py |
|
1 | $ check_code="$TESTDIR"/../contrib/check-code.py | |
2 | $ cd "$TESTDIR"/.. |
|
2 | $ cd "$TESTDIR"/.. | |
3 | $ if hg identify -q > /dev/null 2>&1; then : |
|
3 | $ if hg identify -q > /dev/null 2>&1; then : | |
4 | > else |
|
4 | > else | |
5 | > echo "skipped: not a Mercurial working dir" >&2 |
|
5 | > echo "skipped: not a Mercurial working dir" >&2 | |
6 | > exit 80 |
|
6 | > exit 80 | |
7 | > fi |
|
7 | > fi | |
8 |
|
8 | |||
9 | New errors are not allowed. Warnings are strongly discouraged. |
|
9 | Prepare check for Python files without py extension | |
10 |
|
||||
11 | $ hg manifest 2>/dev/null \ |
|
|||
12 | > | xargs "$check_code" --warnings --nolineno --per-file=0 \ |
|
|||
13 | > || false |
|
|||
14 |
|
||||
15 | Check Python files without py extension |
|
|||
16 |
|
10 | |||
17 | $ cp \ |
|
11 | $ cp \ | |
18 | > hg \ |
|
12 | > hg \ | |
19 | > hgweb.cgi \ |
|
13 | > hgweb.cgi \ | |
20 | > contrib/convert-repo \ |
|
14 | > contrib/convert-repo \ | |
21 | > contrib/dumprevlog \ |
|
15 | > contrib/dumprevlog \ | |
22 | > contrib/hgweb.fcgi \ |
|
16 | > contrib/hgweb.fcgi \ | |
23 | > contrib/hgweb.wsgi \ |
|
17 | > contrib/hgweb.wsgi \ | |
24 | > contrib/simplemerge \ |
|
18 | > contrib/simplemerge \ | |
25 | > contrib/undumprevlog \ |
|
19 | > contrib/undumprevlog \ | |
26 | > i18n/hggettext \ |
|
20 | > i18n/hggettext \ | |
27 | > i18n/posplit \ |
|
21 | > i18n/posplit \ | |
28 | > tests/hghave \ |
|
22 | > tests/hghave \ | |
29 | > tests/dummyssh \ |
|
23 | > tests/dummyssh \ | |
30 | > "$TESTTMP"/ |
|
24 | > "$TESTTMP"/ | |
31 | $ for f in "$TESTTMP"/*; do cp "$f" "$f.py"; done |
|
25 | $ for f in "$TESTTMP"/*; do cp "$f" "$f.py"; done | |
32 | $ "$check_code" --warnings --nolineno --per-file=0 "$TESTTMP"/*.py \ |
|
26 | ||
|
27 | New errors are not allowed. Warnings are strongly discouraged. | |||
|
28 | ||||
|
29 | $ { hg manifest 2>/dev/null; ls "$TESTTMP"/*.py; } \ | |||
|
30 | > | xargs "$check_code" --warnings --nolineno --per-file=0 \ | |||
33 | > || false |
|
31 | > || false |
General Comments 0
You need to be logged in to leave comments.
Login now