--- a/tests/test-check-code-hg.t Mon May 05 13:42:58 2014 -0500
+++ b/tests/test-check-code-hg.t Mon May 05 13:41:29 2014 -0500
@@ -3,28 +3,10 @@
$ check_code="$TESTDIR"/../contrib/check-code.py
$ cd "$TESTDIR"/..
-Prepare check for Python files without py extension
-
- $ cp \
- > hg \
- > hgweb.cgi \
- > contrib/convert-repo \
- > contrib/dumprevlog \
- > contrib/hgweb.fcgi \
- > contrib/hgweb.wsgi \
- > contrib/simplemerge \
- > contrib/undumprevlog \
- > i18n/hggettext \
- > i18n/posplit \
- > tests/hghave \
- > tests/dummyssh \
- > "$TESTTMP"/
- $ for f in "$TESTTMP"/*; do mv "$f" "$f.py"; done
-
New errors are not allowed. Warnings are strongly discouraged.
(The writing "no-che?k-code" is for not skipping this file when checking.)
- $ { hg manifest 2>/dev/null; ls "$TESTTMP"/*.py | sed 's-\\-/-g'; } |
+ $ hg manifest 2>/dev/null | sed 's-\\-/-g' |
> xargs "$check_code" --warnings --per-file=0 || false
Skipping hgext/zeroconf/Zeroconf.py it has no-che?k-code (glob)
Skipping i18n/polib.py it has no-che?k-code (glob)