aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-08-20 05:55:57 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2018-08-20 05:57:58 +0200
commitc4eb9fa4d1ab767a9324f99c3fab2623a97bb7bd (patch)
tree3da792ac12ca233c8c4e795e22136d4b507c2344
parent2ad07442cebfaca7d5d70191f9ffca1cabdf4370 (diff)
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 <cedric.ollivier@orange.com> (cherry picked from commit 240a546fe43c7338235bb5868079efa3bfb9e6fc)
-rw-r--r--xtesting/ci/run_tests.py2
1 files changed, 1 insertions, 1 deletions
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: