test-check-code-hg: fix xargs exit status on OSX stable
authorPatrick Mezard <patrick@mezard.eu>
Thu, 23 Feb 2012 17:46:57 +0100
branchstable
changeset 16156 e7746fefd1ef
parent 16155 1b2b42e866be
child 16162 7e279d475669
test-check-code-hg: fix xargs exit status on OSX When xargs subcommand invocation fails in a normal way, GNU xargs returns 123 and BSD one returns 1.
tests/test-check-code-hg.t
--- a/tests/test-check-code-hg.t	Thu Feb 23 13:37:10 2012 +0100
+++ b/tests/test-check-code-hg.t	Thu Feb 23 17:46:57 2012 +0100
@@ -3,7 +3,7 @@
 
   $ hg manifest | xargs "$check_code" || echo 'FAILURE IS NOT AN OPTION!!!'
 
-  $ hg manifest | xargs "$check_code" --warnings --nolineno --per-file=0
+  $ hg manifest | xargs "$check_code" --warnings --nolineno --per-file=0 || true
   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,3 @@
   tests/test-walkrepo.py:0:
    >         print "Found %d repositories when I should have found 3" % (len(reposet),)
    warning: line over 80 characters
-  [123]