changeset 21223:c35c027f5f43

test-check-code-hg: use test-repo check
author Matt Mackall <mpm@selenic.com>
date Mon, 05 May 2014 13:42:58 -0500
parents 4840abc83970
children f9f405be4c3a
files tests/test-check-code-hg.t
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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