diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2021-07-07 15:23:36 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2021-07-07 15:24:24 +0200 |
commit | 910f60db558467b81e60cf76227cf15864404ca5 (patch) | |
tree | 5b18b89c92d27e52a67c56074436c45c3f58bb44 /functest_kubernetes/cnf_conformance/conformance.py | |
parent | 23994753a1dc06e1d0a7c533291ff7df7271b4f6 (diff) |
Print cnf_testsuite console on exceptions
Change-Id: I3c20993e1cbb644546ac89a8b4b7d1cfd98b0a80
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit f6d5010cd34db6cd639a7fcf5b6183aa117acacf)
Diffstat (limited to 'functest_kubernetes/cnf_conformance/conformance.py')
-rw-r--r-- | functest_kubernetes/cnf_conformance/conformance.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/functest_kubernetes/cnf_conformance/conformance.py b/functest_kubernetes/cnf_conformance/conformance.py index 0a74ccf6..13268e24 100644 --- a/functest_kubernetes/cnf_conformance/conformance.py +++ b/functest_kubernetes/cnf_conformance/conformance.py @@ -100,6 +100,10 @@ class CNFConformance(testcase.TestCase): try: self.setup() self.run_conformance(**kwargs) + except subprocess.CalledProcessError as exc: + self.__logger.exception( + "Can not run CNT Conformance: \n%s\n%s\n", + " ".join(exc.cmd), exc.output.decode("utf-8")) except Exception: # pylint: disable=broad-except self.__logger.exception("Can not run CNF Conformance") self.stop_time = time.time() |