prevent polluting output by subprocesses
diff --git a/tools/run_tests/dockerjob.py b/tools/run_tests/dockerjob.py
index 0d4a1fc..6427b8e 100755
--- a/tools/run_tests/dockerjob.py
+++ b/tools/run_tests/dockerjob.py
@@ -55,7 +55,7 @@
   while time.time() - started < timeout_seconds:
     try:
       output = subprocess.check_output('docker port %s %s' % (cid, port),
-                                       stderr=_DEVNULL
+                                       stderr=_DEVNULL,
                                        shell=True)
       return int(output.split(':', 2)[1])
     except subprocess.CalledProcessError as e:
@@ -85,7 +85,9 @@
   if skip_nonexistent and not image_exists(image):
     return True
   for attempt in range(0, max_retries):
-    if subprocess.call(['docker','rmi', '-f', image]) == 0:
+    if subprocess.call(['docker','rmi', '-f', image],
+                       stdout=_DEVNULL,
+                       stderr=subprocess.STDOUT) == 0:
       return True
     time.sleep(2)
   print 'Failed to remove docker image %s' % image