changeset 16156:e7746fefd1ef stable

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.
author Patrick Mezard <patrick@mezard.eu>
date Thu, 23 Feb 2012 17:46:57 +0100
parents 1b2b42e866be
children 7e279d475669
files tests/test-check-code-hg.t
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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]