tests/hghave.py
changeset 28972 aa927b0a5b87
parent 28880 f74eed3115fd
child 29022 d78e00e4be7c
equal deleted inserted replaced
28971:bacca31f4835 28972:aa927b0a5b87
   456 def has_osx():
   456 def has_osx():
   457     return sys.platform == 'darwin'
   457     return sys.platform == 'darwin'
   458 
   458 
   459 @check("docker", "docker support")
   459 @check("docker", "docker support")
   460 def has_docker():
   460 def has_docker():
   461     pat = r'A self-sufficient runtime for linux containers\.'
   461     pat = r'A self-sufficient runtime for'
   462     if matchoutput('docker --help', pat):
   462     if matchoutput('docker --help', pat):
   463         if 'linux' not in sys.platform:
   463         if 'linux' not in sys.platform:
   464             # TODO: in theory we should be able to test docker-based
   464             # TODO: in theory we should be able to test docker-based
   465             # package creation on non-linux using boot2docker, but in
   465             # package creation on non-linux using boot2docker, but in
   466             # practice that requires extra coordination to make sure
   466             # practice that requires extra coordination to make sure