Print cnf_testsuite console on exceptions 64/72764/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Wed, 7 Jul 2021 13:23:36 +0000 (15:23 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Wed, 7 Jul 2021 13:25:11 +0000 (15:25 +0200)
Change-Id: I3c20993e1cbb644546ac89a8b4b7d1cfd98b0a80
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit f6d5010cd34db6cd639a7fcf5b6183aa117acacf)

functest_kubernetes/cnf_conformance/conformance.py

index 0a74ccf..13268e2 100644 (file)
@@ -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()