diff -r 05535d0dea68 -r df2ff314e36f tests/hghave.py --- 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'