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

login
register
mail settings
Submitter Simon Heimberg
Date July 6, 2013, 9:49 p.m.
Message ID <396aec6a35a214bbf028.1373147393@lapsi.heimberg.home>
Download mbox | patch
Permalink /patch/1804/
State Accepted
Commit 96fd9af75834641ba3b8cd2e8583d604f269da3e
Delegated to: Kevin Bullock
Headers show

Comments

Simon Heimberg - July 6, 2013, 9:49 p.m.
# HG changeset patch
# User Simon Heimberg <simohe@besonet.ch>
# Date 1373140076 -7200
# Node ID 396aec6a35a214bbf0282659123b2699e9faf737
# Parent  b657f0d8eaf1b5102955e887588c2ee9d49f6369
tests: check-code all python files in one run

Patch

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