aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/ci
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2019-11-09 15:47:14 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2019-11-09 15:49:21 +0100
commit6ebdd92f5995992b433a6f0ffc10e9e3bcf22a89 (patch)
tree3f9b7f68175941719cf7044fbf5b1df54d306787 /xtesting/ci
parent6a5d964aa60ccfefe2e8750622203cad4bf762a4 (diff)
Add links in testcase details
It allows finding easily reports thanks to DB. Change-Id: Ib5c4400c186fd320ae87e7fd3d4404b65e996a82 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 256e6b0a10d43e930ecd81078d9cbcd89ebb5a06)
Diffstat (limited to 'xtesting/ci')
-rw-r--r--xtesting/ci/run_tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/xtesting/ci/run_tests.py b/xtesting/ci/run_tests.py
index e3a5986f..eb1fc6da 100644
--- a/xtesting/ci/run_tests.py
+++ b/xtesting/ci/run_tests.py
@@ -172,14 +172,14 @@ class Runner():
test_case.run(**kwargs)
except KeyError:
test_case.run()
- if self.report_flag:
- test_case.push_to_db()
result = test_case.is_successful()
LOGGER.info("Test result:\n\n%s\n", test_case)
if self.clean_flag:
test_case.clean()
if self.push_flag:
test_case.publish_artifacts()
+ if self.report_flag:
+ test_case.push_to_db()
except ImportError:
LOGGER.exception("Cannot import module %s", run_dict['module'])
except AttributeError: