summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-04-05 12:44:57 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-04-05 12:45:31 +0200
commita353457fd208ae1be449f0f067c3b1c0dd1132ec (patch)
tree68522e1da421454f39ad862979a3dd0682a2684d
parent0409655e64e43a022950748cca2494b9846af97a (diff)
suites: gprs: Keep terminating all iperf3 processes if one fails to terminate
-rw-r--r--suites/gprs/lib/testlib.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/suites/gprs/lib/testlib.py b/suites/gprs/lib/testlib.py
index ac3a847..284ca63 100644
--- a/suites/gprs/lib/testlib.py
+++ b/suites/gprs/lib/testlib.py
@@ -26,7 +26,10 @@ def run_iperf3_cli_parallel(iperf3clients, ms_li, ready_cb):
proc.wait()
except Exception as e:
for proc in procs:
- proc.terminate()
+ try:
+ proc.terminate()
+ except Exception:
+ print("Exception while terminating process %r" % repr(process))
raise e