tests/test-check-code-hg.t
changeset 21223 c35c027f5f43
parent 20239 16b5f498f49c
child 21224 f9f405be4c3a
--- 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