equal
deleted
inserted
replaced
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): |