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.
--- 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]