[PATCH 1 of 3] tests: check-code all python files in one run
Simon Heimberg
simohe at besonet.ch
Wed Jun 12 23:48:23 UTC 2013
# HG changeset patch
# User simon at laptop-tosh
# Date 1371080641 -7200
# Node ID e15a377d7f040a8bf820362ed6f5343366b14f4e
# Parent 78c948ed59fd6c45ce10bfc67b213e8fcdb3b0cb
tests: check-code all python files in one run
diff -r 78c948ed59fd -r e15a377d7f04 tests/test-check-code-hg.t
--- a/tests/test-check-code-hg.t Don Jun 13 01:44:01 2013 +0200
+++ b/tests/test-check-code-hg.t Don Jun 13 01:44:01 2013 +0200
@@ -6,13 +6,7 @@
> exit 80
> fi
-New errors are not allowed. Warnings are strongly discouraged.
-
- $ hg manifest 2>/dev/null \
- > | xargs "$check_code" --warnings --nolineno --per-file=0 \
- > || false
-
-Check Python files without py extension
+Prepare check for Python files without py extension
$ cp \
> hg \
@@ -25,5 +19,9 @@
> contrib/undumprevlog \
> "$TESTTMP"/
$ for f in "$TESTTMP"/*; do cp "$f" "$f.py"; done
- $ "$check_code" --warnings --nolineno --per-file=0 "$TESTTMP"/*.py \
- > || false
+
+New errors are not allowed. Warnings are strongly discouraged.
+
+ $ hg manifest 2>/dev/null \
+ > | xargs "$check_code" "$TESTTMP"/*.py --warnings --nolineno --per-file=0 \
+ > || false
More information about the Mercurial-devel
mailing list