diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-07-15 11:22:05 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-08-07 05:43:45 +0200 |
commit | 8a47fa355754b30f6b6fa9e9f55c7dc4149ac9c9 (patch) | |
tree | a5fcaf6ce8e1b1fbb8779fef1a20ff85709681fc | |
parent | 29fdd1e423968b7f797b5a33946bc0c08421e0f7 (diff) |
Fix results when only one skipped test
Change-Id: Id6c8029b8be1e3a01979feb45daebad08710fe20
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 000f21ee1c0dcba6a438e39166bad8b3270e3c5e)
-rw-r--r-- | xtesting/ci/run_tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xtesting/ci/run_tests.py b/xtesting/ci/run_tests.py index ce3d2b5e..56a7549f 100644 --- a/xtesting/ci/run_tests.py +++ b/xtesting/ci/run_tests.py @@ -151,6 +151,7 @@ class Runner(object): run_dict = self.get_run_dict(test.get_name()) if run_dict: try: + LOGGER.info("Loading test case '%s'...", test.get_name()) module = importlib.import_module(run_dict['module']) cls = getattr(module, run_dict['class']) test_dict = Runner.get_dict_by_test(test.get_name()) @@ -240,7 +241,7 @@ class Runner(object): elif self.tiers.get_test(kwargs['test']): result = self.run_test( self.tiers.get_test(kwargs['test'])) - if result != testcase.TestCase.EX_OK: + if result == testcase.TestCase.EX_TESTCASE_FAILED: LOGGER.error("The test case '%s' failed.", kwargs['test']) self.overall_result = Result.EX_ERROR |