tests: introduce 'hghave msys' to skip tests that would fail because of msys stable
authorMads Kiilerich <mads@kiilerich.com>
Mon, 21 Nov 2011 01:49:20 +0100
branchstable
changeset 1031 b914fc162545
parent 1030 b2dd573fd8ca
child 1032 5923d03569b3
tests: introduce 'hghave msys' to skip tests that would fail because of msys [ original upstream message ]
tests/hghave
--- a/tests/hghave	Thu Nov 24 06:42:48 2011 +0000
+++ b/tests/hghave	Mon Nov 21 01:49:20 2011 +0100
@@ -221,6 +221,9 @@
 def has_tic():
     return matchoutput('test -x "`which tic`"', '')
 
+def has_msys():
+    return os.getenv('MSYSTEM')
+
 checks = {
     "baz": (has_baz, "GNU Arch baz client"),
     "bzr": (has_bzr, "Canonical's Bazaar client"),
@@ -255,6 +258,7 @@
     "tla": (has_tla, "GNU Arch tla client"),
     "unix-permissions": (has_unix_permissions, "unix-style permissions"),
     "windows": (has_windows, "Windows"),
+    "msys": (has_msys, "Windows with MSYS"),
 }
 
 def list_features():