From: Cédric Ollivier Date: Mon, 20 Aug 2018 03:55:57 +0000 (+0200) Subject: Initialize testcase results to EX_TESTCASE_FAILED X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F87%2F61087%2F1;p=functest-xtesting.git Initialize testcase results to EX_TESTCASE_FAILED Else the testcase returns EX_OK if exceptions in __init__() Change-Id: I5f23e91a3ecda22a429a006af56592ee86084038 Signed-off-by: Cédric Ollivier (cherry picked from commit 240a546fe43c7338235bb5868079efa3bfb9e6fc) --- diff --git a/xtesting/ci/run_tests.py b/xtesting/ci/run_tests.py index 255b74df..c359ba6e 100644 --- a/xtesting/ci/run_tests.py +++ b/xtesting/ci/run_tests.py @@ -146,7 +146,7 @@ class Runner(object): msg.add_row([test.get_name(), test.get_project(), "00:00", "SKIP"]) LOGGER.info("Test result:\n\n%s\n", msg) return testcase.TestCase.EX_TESTCASE_SKIPPED - result = testcase.TestCase.EX_RUN_ERROR + result = testcase.TestCase.EX_TESTCASE_FAILED run_dict = self.get_run_dict(test.get_name()) if run_dict: try: