diff tests/test-check-code-hg.t @ 16485:f48b075ff088 stable

tests: solaris sh can not negate exit status with '!'
author Mads Kiilerich <mads@kiilerich.com>
date Mon, 23 Apr 2012 01:39:26 +0200
parents d76b9abd1509
children 46e9ed223d2c
line wrap: on
line diff
--- a/tests/test-check-code-hg.t	Mon Apr 23 01:39:26 2012 +0200
+++ b/tests/test-check-code-hg.t	Mon Apr 23 01:39:26 2012 +0200
@@ -1,6 +1,7 @@
   $ check_code="$TESTDIR"/../contrib/check-code.py
   $ cd "$TESTDIR"/..
-  $ if ! hg identify -q > /dev/null; then
+  $ if hg identify -q > /dev/null; then :
+  > else
   >     echo "skipped: not a Mercurial working dir" >&2
   >     exit 80
   > fi