Mercurial > hg
changeset 16179:be6ac2ecc7f8 stable
test-check-code-hg: skip test if not in a working dir (issue3248).
author | Greg Ward <greg@gerg.ca> |
---|---|
date | Sat, 18 Feb 2012 16:30:17 -0500 |
parents | 280e834c9d15 |
children | 82ce91a9fd94 |
files | tests/test-check-code-hg.t |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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