tests/hghave.py
branchstable
changeset 21208 0e1cbd3d52f7
parent 20644 779ceb84f4f7
child 22093 45611a306f77
--- a/tests/hghave.py	Sat Apr 26 00:38:02 2014 -0700
+++ b/tests/hghave.py	Thu May 01 09:42:23 2014 -0500
@@ -259,6 +259,10 @@
 def has_serve():
     return os.name != 'nt' # gross approximation
 
+def has_test_repo():
+    t = os.environ["TESTDIR"]
+    return os.path.isdir(os.path.join(t, "..", ".hg"))
+
 def has_tic():
     try:
         import curses
@@ -317,6 +321,7 @@
     "svn-bindings": (has_svn_bindings, "subversion python bindings"),
     "symlink": (has_symlink, "symbolic links"),
     "system-sh": (has_system_sh, "system() uses sh"),
+    "test-repo": (has_test_repo, "running tests from repository"),
     "tic": (has_tic, "terminfo compiler and curses module"),
     "tla": (has_tla, "GNU Arch tla client"),
     "unix-permissions": (has_unix_permissions, "unix-style permissions"),