tests/test-check-code-hg.t
branchstable
changeset 16179 be6ac2ecc7f8
parent 16156 e7746fefd1ef
child 16192 a4413624d014
child 16231 ce292f1379ba
--- a/tests/test-check-code-hg.t	Sat Feb 25 19:39:55 2012 +0100
+++ b/tests/test-check-code-hg.t	Sat Feb 18 16:30:17 2012 -0500
@@ -1,6 +1,9 @@
   $ check_code="$TESTDIR"/../contrib/check-code.py
   $ cd "$TESTDIR"/..
-
+  $ if ! hg identify -q > /dev/null; then
+  >     echo "skipped: not a Mercurial working dir" >&2
+  >     exit 80
+  > fi
   $ hg manifest | xargs "$check_code" || echo 'FAILURE IS NOT AN OPTION!!!'
 
   $ hg manifest | xargs "$check_code" --warnings --nolineno --per-file=0 || true