test-check-code-hg: use test-repo check
authorMatt Mackall <mpm@selenic.com>
Mon, 05 May 2014 13:42:58 -0500
changeset 21223 c35c027f5f43
parent 21222 4840abc83970
child 21224 f9f405be4c3a
test-check-code-hg: use test-repo check
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