From: Linda Wang Date: Mon, 19 Mar 2018 07:40:11 +0000 (+0000) Subject: Update the details of tempest results X-Git-Tag: opnfv-6.0.0~65^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=5cfcb91ce1fbe980650b4af00be49a362ae5d9c8;p=functest.git Update the details of tempest results Change-Id: Idb18c7784e44030a48208ea64c21cde2536a3387 Signed-off-by: Linda Wang --- 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