##// END OF EJS Templates
tests: check-code all python files in one run
Simon Heimberg -
r19384:96fd9af7 default
parent child Browse files
Show More
@@ -1,33 +1,31 b''
1 1 $ check_code="$TESTDIR"/../contrib/check-code.py
2 2 $ cd "$TESTDIR"/..
3 3 $ if hg identify -q > /dev/null 2>&1; then :
4 4 > else
5 5 > echo "skipped: not a Mercurial working dir" >&2
6 6 > exit 80
7 7 > fi
8 8
9 New errors are not allowed. Warnings are strongly discouraged.
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
9 Prepare check for Python files without py extension
16 10
17 11 $ cp \
18 12 > hg \
19 13 > hgweb.cgi \
20 14 > contrib/convert-repo \
21 15 > contrib/dumprevlog \
22 16 > contrib/hgweb.fcgi \
23 17 > contrib/hgweb.wsgi \
24 18 > contrib/simplemerge \
25 19 > contrib/undumprevlog \
26 20 > i18n/hggettext \
27 21 > i18n/posplit \
28 22 > tests/hghave \
29 23 > tests/dummyssh \
30 24 > "$TESTTMP"/
31 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 31 > || false
General Comments 0
You need to be logged in to leave comments. Login now