Return result = 0 if failure in juju_epc 22/69222/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Mon, 2 Dec 2019 06:31:52 +0000 (07:31 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Mon, 2 Dec 2019 06:35:53 +0000 (07:35 +0100)
Else it's falsy successfull [1]

[1] https://build.opnfv.org/ci/job/airship-opnfv-functest-vnf-latest-juju_epc-run/42/console

Change-Id: Ic9f7c37db998904833c90ae3ee912e9908617abd
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit e03d0444b53d1a9eaeadf52f66fb69d35889d768)

functest/opnfv_tests/vnf/epc/juju_epc.py

index 23494dc..e0ff72c 100644 (file)
@@ -384,6 +384,7 @@ class JujuEpc(singlevm.VmReady2):
             self.stop_time = time.time()
             return self.EX_TESTCASE_FAILED
         except Exception:  # pylint: disable=broad-except
+            self.result = 0
             self.stop_time = time.time()
             self.__logger.exception("Exception on VNF testing")
             return self.EX_TESTCASE_FAILED