[PATCH STABLE] tests: fix command line overflow on ksh
Jim Hague
jim.hague at acm.org
Sat Feb 4 00:03:41 UTC 2012
# HG changeset patch
# User Jim Hague <jim.hague at acm.org>
# Date 1328313725 0
# Branch stable
# Node ID 271de8079060cfa796a2e9b21d6bc873df3ea038
# Parent bf64d6632411a286b0da43f2ef01f05c207d557c
tests: fix command line overflow on ksh
"<command> `hg manifest`" overflows the puny 1024 byte command line length
limit on AIX default shell ksh. Replace with "hg manifest | xargs <command>".
diff -r bf64d6632411 -r 271de8079060 tests/test-check-code-hg.t
--- a/tests/test-check-code-hg.t Fri Feb 03 23:27:21 2012 +0000
+++ b/tests/test-check-code-hg.t Sat Feb 04 00:02:05 2012 +0000
@@ -1,9 +1,9 @@
$ check_code="$TESTDIR"/../contrib/check-code.py
$ cd "$TESTDIR"/..
- $ "$check_code" `hg manifest` || echo 'FAILURE IS NOT AN OPTION!!!'
+ $ hg manifest | xargs "$check_code" || echo 'FAILURE IS NOT AN OPTION!!!'
- $ "$check_code" --warnings --nolineno --per-file=0 `hg manifest`
+ $ hg manifest | xargs "$check_code" --warnings --nolineno --per-file=0
contrib/check-code.py:0:
> # (r'^\s+[^_ \n][^_. \n]+_[^_\n]+\s*=', "don't use underbars in identifiers"),
warning: line over 80 characters
@@ -657,4 +657,4 @@
tests/test-walkrepo.py:0:
> print "Found %d repositories when I should have found 3" % (len(reposet),)
warning: line over 80 characters
- [1]
+ [123]
More information about the Mercurial-devel
mailing list