aboutsummaryrefslogtreecommitdiffstats
path: root/functest_kubernetes/netperf
diff options
context:
space:
mode:
Diffstat (limited to 'functest_kubernetes/netperf')
-rw-r--r--functest_kubernetes/netperf/netperf.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/functest_kubernetes/netperf/netperf.py b/functest_kubernetes/netperf/netperf.py
index 7f77807b..b3642085 100644
--- a/functest_kubernetes/netperf/netperf.py
+++ b/functest_kubernetes/netperf/netperf.py
@@ -60,8 +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 Exception: # pylint: disable=broad-except
- self.__logger.exception("Can not run Netperf")
+ except subprocess.SubprocessError as exc:
+ self.__logger.exception(
+ "Cannot run Netperf:\n%s", ' '.join(exc.cmd),
+ exc.output.decode("utf-8"))
self.result = 0
status = testcase.TestCase.EX_RUN_ERROR
self.stop_time = time.time()