Skip to content

Commit

Permalink
Fix stdin on run_interop_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
carl-mastrangelo committed Nov 19, 2015
1 parent 6d80632 commit 2d248a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tools/run_tests/dockerjob.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion tools/run_tests/run_interop_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
import multiprocessing
import os
import report_utils
import subprocess
import sys
import tempfile
import time
Expand Down

0 comments on commit 2d248a2

Please sign in to comment.