From 240a546fe43c7338235bb5868079efa3bfb9e6fc Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Mon, 20 Aug 2018 05:55:57 +0200 Subject: Initialize testcase results to EX_TESTCASE_FAILED MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Else the testcase returns EX_OK if exceptions in __init__() Change-Id: I5f23e91a3ecda22a429a006af56592ee86084038 Signed-off-by: Cédric Ollivier --- xtesting/ci/run_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xtesting') diff --git a/xtesting/ci/run_tests.py b/xtesting/ci/run_tests.py index 3a3e6858..c8e99663 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: -- cgit 1.2.3-korg