diff --git a/test/probe/common.py b/test/probe/common.py index 539b955703..e3be31b4fa 100644 --- a/test/probe/common.py +++ b/test/probe/common.py @@ -16,7 +16,7 @@ from httplib import HTTPConnection from os import kill from signal import SIGTERM -from subprocess import call, Popen +from subprocess import Popen, PIPE, STDOUT from time import sleep, time from swiftclient import get_auth, head_account @@ -124,7 +124,9 @@ def kill_nonprimary_server(primary_nodes, port2server, pids): def reset_environment(): - call(['resetswift']) + p = Popen("resetswift 2>&1", shell=True, stdout=PIPE) + stdout, _stderr = p.communicate() + print stdout pids = {} try: port2server = {}