diff options
author | 2015-11-19 14:47:07 -0800 | |
---|---|---|
committer | 2015-11-19 14:47:07 -0800 | |
commit | faa1c6edb48387d3647130d82962f9b8844ee75a (patch) | |
tree | c60883dc8777d26869510010faa09aa1543969e0 /tools/run_tests | |
parent | e7790845206532f10934212d7d988c3dd0137ed3 (diff) | |
parent | 2d248a29f73be0cc9a6514afbe392ec0ed990485 (diff) |
Merge pull request #4165 from carl-mastrangelo/fixdocker
Fix stdin on run_interop_tests
Diffstat (limited to 'tools/run_tests')
-rwxr-xr-x | tools/run_tests/dockerjob.py | 3 | ||||
-rwxr-xr-x | tools/run_tests/run_interop_tests.py | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tools/run_tests/dockerjob.py b/tools/run_tests/dockerjob.py index 7d64222ba0..326c4faed9 100755 --- a/tools/run_tests/dockerjob.py +++ b/tools/run_tests/dockerjob.py @@ -47,6 +47,7 @@ def random_name(base_name): def docker_kill(cid): """Kills a docker container. Returns True if successful.""" return subprocess.call(['docker','kill', str(cid)], + stdin=subprocess.PIPE, stdout=_DEVNULL, stderr=subprocess.STDOUT) == 0 @@ -78,6 +79,7 @@ def finish_jobs(jobs): def image_exists(image): """Returns True if given docker image exists.""" return subprocess.call(['docker','inspect', image], + stdin=subprocess.PIPE, stdout=_DEVNULL, stderr=subprocess.STDOUT) == 0 @@ -88,6 +90,7 @@ def remove_image(image, skip_nonexistent=False, max_retries=10): return True for attempt in range(0, max_retries): if subprocess.call(['docker','rmi', '-f', image], + stdin=subprocess.PIPE, stdout=_DEVNULL, stderr=subprocess.STDOUT) == 0: return True diff --git a/tools/run_tests/run_interop_tests.py b/tools/run_tests/run_interop_tests.py index ee3cddddd9..37b8ab19f6 100755 --- a/tools/run_tests/run_interop_tests.py +++ b/tools/run_tests/run_interop_tests.py @@ -37,7 +37,6 @@ import jobset import multiprocessing import os import report_utils -import subprocess import sys import tempfile import time |