# HG changeset patch # User Matt Mackall # Date 2014-05-05 18:42:58 # Node ID c35c027f5f43ea95b8f21892b6e35b1fd6cc8d3f # Parent 4840abc83970f8a970b21862cd2dd29dc4c98820 test-check-code-hg: use test-repo check diff --git a/tests/test-check-code-hg.t b/tests/test-check-code-hg.t --- a/tests/test-check-code-hg.t +++ b/tests/test-check-code-hg.t @@ -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 @@ New errors are not allowed. Warnings are 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