aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2018-03-20 07:16:48 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-03-20 07:16:48 +0000
commit0402dfb0e0a720ff0be42ac730afc25f54fef2eb (patch)
treea83d2f8d752871120cd06b21cff29865c6667164
parente72e4b1dd24623d1df26a885060bd6ace60cd39f (diff)
parent5cfcb91ce1fbe980650b4af00be49a362ae5d9c8 (diff)
Merge "Update the details of tempest results"
-rw-r--r--functest/opnfv_tests/openstack/tempest/tempest.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/functest/opnfv_tests/openstack/tempest/tempest.py b/functest/opnfv_tests/openstack/tempest/tempest.py
index cab09a641..74ddbd981 100644
--- a/functest/opnfv_tests/openstack/tempest/tempest.py
+++ b/functest/opnfv_tests/openstack/tempest/tempest.py
@@ -219,17 +219,19 @@ class TempestCommon(testcase.TestCase):
for match in re.findall(r'.*\{0\} (.*?)[. ]*success ', output):
success_testcases.append(match)
failed_testcases = []
- for match in re.findall(r'.*\{0\} (.*?)[. ]*fail ', output):
+ for match in re.findall(r'.*\{0\} (.*?)[. ]*fail', output):
failed_testcases.append(match)
skipped_testcases = []
for match in re.findall(r'.*\{0\} (.*?)[. ]*skip:', output):
skipped_testcases.append(match)
- self.details = {"tests": stat['num_tests'],
- "failures": stat['num_failures'],
+ self.details = {"tests_number": stat['num_tests'],
+ "success_number": stat['num_success'],
+ "skipped_number": stat['num_skipped'],
+ "failures_number": stat['num_failures'],
"success": success_testcases,
"skipped": skipped_testcases,
- "errors": failed_testcases}
+ "failures": failed_testcases}
except Exception: # pylint: disable=broad-except
self.result = 0