tests/hghave.py
changeset 34885 df2ff314e36f
parent 34840 88624b40a9cb
child 34892 e1458bce84db
--- a/tests/hghave.py	Fri Oct 06 06:48:43 2017 -0700
+++ b/tests/hghave.py	Wed Oct 18 22:57:15 2017 +0200
@@ -559,6 +559,11 @@
     except ImportError:
         return False
 
+@check('linuxormacos', 'Linux or MacOS')
+def has_linuxormacos():
+    # This isn't a perfect test for MacOS. But it is sufficient for our needs.
+    return sys.platform.startswith(('linux', 'darwin'))
+
 @check("docker", "docker support")
 def has_docker():
     pat = br'A self-sufficient runtime for'