[PATCH 1 of 3] tests: check-code all python files in one run

Simon Heimberg simohe at besonet.ch
Sat Jul 6 16:49:53 CDT 2013


# HG changeset patch
# User Simon Heimberg <simohe at besonet.ch>
# Date 1373140076 -7200
# Node ID 396aec6a35a214bbf0282659123b2699e9faf737
# Parent  b657f0d8eaf1b5102955e887588c2ee9d49f6369
tests: check-code all python files in one run

diff -r b657f0d8eaf1 -r 396aec6a35a2 tests/test-check-code-hg.t
--- a/tests/test-check-code-hg.t	Sam Jul 06 21:47:47 2013 +0200
+++ b/tests/test-check-code-hg.t	Sam Jul 06 21:47:56 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 \
@@ -29,5 +23,9 @@
   >   tests/dummyssh \
   >   "$TESTTMP"/
   $ for f in "$TESTTMP"/*; do cp "$f" "$f.py"; done
-  $ "$check_code" --warnings --nolineno --per-file=0 "$TESTTMP"/*.py \
+
+New errors are not allowed. Warnings are strongly discouraged.
+
+  $ { hg manifest 2>/dev/null; ls "$TESTTMP"/*.py; } \
+  >   | xargs "$check_code" --warnings --nolineno --per-file=0 \
   >   || false


More information about the Mercurial-devel mailing list