aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--functest_kubernetes/netperf/netperf.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/functest_kubernetes/netperf/netperf.py b/functest_kubernetes/netperf/netperf.py
index b3642085..7832e6d1 100644
--- a/functest_kubernetes/netperf/netperf.py
+++ b/functest_kubernetes/netperf/netperf.py
@@ -60,9 +60,10 @@ class Netperf(testcase.TestCase):
self.__logger.info("%s\n%s", " ".join(cmd), output.decode("utf-8"))
self.result = 100
status = testcase.TestCase.EX_OK
- except subprocess.SubprocessError as exc:
+ except (subprocess.TimeoutExpired,
+ subprocess.CalledProcessError) as exc:
self.__logger.exception(
- "Cannot run Netperf:\n%s", ' '.join(exc.cmd),
+ "Cannot run %s:\n%s", ' '.join(exc.cmd),
exc.output.decode("utf-8"))
self.result = 0
status = testcase.TestCase.EX_RUN_ERROR