##// END OF EJS Templates
tests: check-code more python files without py extension...
simon@laptop-tosh -
r19321:2d03c8da default
parent child Browse files
Show More
@@ -1,29 +1,33 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 New errors are not allowed. Warnings are strongly discouraged.
10
10
11 $ hg manifest 2>/dev/null \
11 $ hg manifest 2>/dev/null \
12 > | xargs "$check_code" --warnings --nolineno --per-file=0 \
12 > | xargs "$check_code" --warnings --nolineno --per-file=0 \
13 > || false
13 > || false
14
14
15 Check Python files without py extension
15 Check Python files without py extension
16
16
17 $ cp \
17 $ cp \
18 > hg \
18 > hg \
19 > hgweb.cgi \
19 > hgweb.cgi \
20 > contrib/convert-repo \
20 > contrib/convert-repo \
21 > contrib/dumprevlog \
21 > contrib/dumprevlog \
22 > contrib/hgweb.fcgi \
22 > contrib/hgweb.fcgi \
23 > contrib/hgweb.wsgi \
23 > contrib/hgweb.wsgi \
24 > contrib/simplemerge \
24 > contrib/simplemerge \
25 > contrib/undumprevlog \
25 > contrib/undumprevlog \
26 > i18n/hggettext \
27 > i18n/posplit \
28 > tests/hghave \
29 > tests/dummyssh \
26 > "$TESTTMP"/
30 > "$TESTTMP"/
27 $ for f in "$TESTTMP"/*; do cp "$f" "$f.py"; done
31 $ for f in "$TESTTMP"/*; do cp "$f" "$f.py"; done
28 $ "$check_code" --warnings --nolineno --per-file=0 "$TESTTMP"/*.py \
32 $ "$check_code" --warnings --nolineno --per-file=0 "$TESTTMP"/*.py \
29 > || false
33 > || false
General Comments 0
You need to be logged in to leave comments. Login now