summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2017-08-18 12:44:09 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-08-18 12:44:09 +0000
commitacb8d8cee379a5c6c40845c7414541095627e71b (patch)
tree93c712f07f5c20d3f7ff5157074cbb903545694e
parent9622f5603e90166a92e87aa464f14d5db80a902a (diff)
parent282c0ccaf94b60b27a1ed2291e03f5186688158b (diff)
Merge "Fix summary in run_tests.py"
-rw-r--r--functest/ci/run_tests.py18
1 files changed, 12 insertions, 6 deletions
diff --git a/functest/ci/run_tests.py b/functest/ci/run_tests.py
index 38abe40cf..63a50dea2 100644
--- a/functest/ci/run_tests.py
+++ b/functest/ci/run_tests.py
@@ -243,12 +243,18 @@ class Runner(object):
tiers = [tier] if tier else self._tiers.get_tiers()
for tier in tiers:
for test in tier.get_tests():
- test_case = self.executed_test_cases[test.get_name()]
- result = 'PASS' if(test_case.is_successful(
- ) == test_case.EX_OK) else 'FAIL'
- msg.add_row([test_case.case_name, test_case.project_name,
- self._tiers.get_tier_name(test_case.case_name),
- test_case.get_duration(), result])
+ try:
+ test_case = self.executed_test_cases[test.get_name()]
+ except KeyError:
+ msg.add_row([test.get_name(), test.get_project(),
+ tier.get_name(), "00:00", "SKIP"])
+ else:
+ result = 'PASS' if(test_case.is_successful(
+ ) == test_case.EX_OK) else 'FAIL'
+ msg.add_row(
+ [test_case.case_name, test_case.project_name,
+ self._tiers.get_tier_name(test_case.case_name),
+ test_case.get_duration(), result])
for test in tier.get_skipped_test():
msg.add_row([test.get_name(), test.get_project(),
tier.get_name(), "00:00", "SKIP"])