check error for docker inspect

pull/10165/head^2
Eric Gribkoff 8 years ago
parent d3b160010e
commit d86a19efd0
  1. 5
      tools/run_tests/python_utils/dockerjob.py

@ -76,8 +76,9 @@ def wait_for_healthy(cid, shortname, timeout_seconds):
while time.time() - started < timeout_seconds:
try:
output = subprocess.check_output(
['docker', 'inspect', '--format="{{.State.Health.Status}}"', cid],
stderr=_DEVNULL)
['docker', 'inspect', '--format="{{.State.Health.Status}}"', cid])
#stderr=_DEVNULL)
print(output)
if output.strip('\n') == 'healthy':
return
except subprocess.CalledProcessError as e:

Loading…
Cancel
Save