Initialize testcase results to EX_TESTCASE_FAILED 87/61087/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Mon, 20 Aug 2018 03:55:57 +0000 (05:55 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Mon, 20 Aug 2018 03:57:58 +0000 (05:57 +0200)
Else the testcase returns EX_OK if exceptions in __init__()

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

xtesting/ci/run_tests.py

index 255b74d..c359ba6 100644 (file)
@@ -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: