tests/hghave.py
changeset 34885 df2ff314e36f
parent 34840 88624b40a9cb
child 34892 e1458bce84db
equal deleted inserted replaced
34884:05535d0dea68 34885:df2ff314e36f
   556                 and matchoutput('lsbom', br'Usage: lsbom', ignorestatus=1)
   556                 and matchoutput('lsbom', br'Usage: lsbom', ignorestatus=1)
   557                 and matchoutput(
   557                 and matchoutput(
   558                     'xar --help', br'Usage: xar', ignorestatus=1))
   558                     'xar --help', br'Usage: xar', ignorestatus=1))
   559     except ImportError:
   559     except ImportError:
   560         return False
   560         return False
       
   561 
       
   562 @check('linuxormacos', 'Linux or MacOS')
       
   563 def has_linuxormacos():
       
   564     # This isn't a perfect test for MacOS. But it is sufficient for our needs.
       
   565     return sys.platform.startswith(('linux', 'darwin'))
   561 
   566 
   562 @check("docker", "docker support")
   567 @check("docker", "docker support")
   563 def has_docker():
   568 def has_docker():
   564     pat = br'A self-sufficient runtime for'
   569     pat = br'A self-sufficient runtime for'
   565     if matchoutput('docker --help', pat):
   570     if matchoutput('docker --help', pat):