diff options
author | Linda Wang <wangwulin@huawei.com> | 2018-03-19 07:40:11 +0000 |
---|---|---|
committer | Linda Wang <wangwulin@huawei.com> | 2018-03-20 02:42:01 +0000 |
commit | 5cfcb91ce1fbe980650b4af00be49a362ae5d9c8 (patch) | |
tree | e59e762c64ec687815a95fec001a3ab5fa5294a3 | |
parent | 471128ebc1414eb6e97dcf444bf4f312ea24d6a5 (diff) |
Update the details of tempest results
Change-Id: Idb18c7784e44030a48208ea64c21cde2536a3387
Signed-off-by: Linda Wang <wangwulin@huawei.com>
-rw-r--r-- | functest/opnfv_tests/openstack/tempest/tempest.py | 10 |
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 |