# HG changeset patch # User Greg Ward # Date 1329600617 18000 # Node ID be6ac2ecc7f8f0727124dc21b6ab902d1e462a2a # Parent 280e834c9d15b0d65a0ee24374671e0cd2147f4e test-check-code-hg: skip test if not in a working dir (issue3248). diff -r 280e834c9d15 -r be6ac2ecc7f8 tests/test-check-code-hg.t --- 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