diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2024-01-09 14:36:30 +0100 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2024-01-09 14:37:51 +0100 |
commit | 7e7489aa34c0c819140889a6c1693bf7d303be8c (patch) | |
tree | 667d0bb27241feaeae5f5ff0097fa17da9cafedd /functest_kubernetes/netperf/netperf.py | |
parent | 15a943771a2c5a6d3727e97839716fd546ceb57a (diff) |
Fix pylint issues in netperf
Change-Id: I47eac42fd30e857e2a94a7b5caa5850b3c7c9196
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit e98c46bdcc7087b55ce0339111c7bedc450e94b0)
Diffstat (limited to 'functest_kubernetes/netperf/netperf.py')
-rw-r--r-- | functest_kubernetes/netperf/netperf.py | 5 |
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 |