# HG changeset patch # User Matt Mackall # Date 1399315378 18000 # Node ID c35c027f5f43ea95b8f21892b6e35b1fd6cc8d3f # Parent 4840abc83970f8a970b21862cd2dd29dc4c98820 test-check-code-hg: use test-repo check diff -r 4840abc83970 -r c35c027f5f43 tests/test-check-code-hg.t --- a/tests/test-check-code-hg.t Mon May 05 13:37:59 2014 -0500 +++ b/tests/test-check-code-hg.t Mon May 05 13:42:58 2014 -0500 @@ -1,10 +1,7 @@ +#if test-repo + $ check_code="$TESTDIR"/../contrib/check-code.py $ cd "$TESTDIR"/.. - $ if hg identify -q > /dev/null 2>&1; then : - > else - > echo "skipped: not a Mercurial working dir" >&2 - > exit 80 - > fi Prepare check for Python files without py extension @@ -34,3 +31,5 @@ Skipping mercurial/httpclient/__init__.py it has no-che?k-code (glob) Skipping mercurial/httpclient/_readers.py it has no-che?k-code (glob) Skipping mercurial/httpclient/socketutil.py it has no-che?k-code (glob) + +#endif