summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xproxy/tests/runtests.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/proxy/tests/runtests.py b/proxy/tests/runtests.py
index a941064..7cceb2f 100755
--- a/proxy/tests/runtests.py
+++ b/proxy/tests/runtests.py
@@ -355,13 +355,19 @@ def run_basic_test(testdir, logfile, env):
p1.wait()
if p1.returncode != 0:
print >> sys.stderr, "FAILED: Init test"
- os.killpg(p2.pid, signal.SIGTERM)
+ try:
+ os.killpg(p2.pid, signal.SIGTERM)
+ except OSError:
+ pass
else:
print >> sys.stderr, "SUCCESS: Init test"
p2.wait()
if p2.returncode != 0:
print >> sys.stderr, "FAILED: Accept test"
- os.killpg(p1.pid, signal.SIGTERM)
+ try:
+ os.killpg(p1.pid, signal.SIGTERM)
+ except OSError:
+ pass
else:
print >> sys.stderr, "SUCCESS: Accept test"