diff options
author | Linda Wang <wangwulin@huawei.com> | 2018-05-09 03:38:13 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-05-09 03:38:13 +0000 |
commit | 03ef3ebd7f2f85c6b3691bdd0ce69ab4cb9d9f85 (patch) | |
tree | 81bcde6f7d239ea12b5d04c8c9090ac14a511f2c | |
parent | 65f39928b94b04cc1a2936b0260dbc4deec080f8 (diff) | |
parent | 882818bdf267a0e93aafb80417b59f7fdb9826ca (diff) |
Merge "Functest fail to parse tempest-based results" into stable/fraser
-rw-r--r-- | functest/opnfv_tests/openstack/tempest/tempest.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/functest/opnfv_tests/openstack/tempest/tempest.py b/functest/opnfv_tests/openstack/tempest/tempest.py index 9d001a82e..b9b6e37b3 100644 --- a/functest/opnfv_tests/openstack/tempest/tempest.py +++ b/functest/opnfv_tests/openstack/tempest/tempest.py @@ -226,13 +226,16 @@ class TempestCommon(testcase.TestCase): output = logfile.read() success_testcases = [] - for match in re.findall(r'.*\{0\} (.*?)[. ]*success ', output): + for match in re.findall(r'.*\{\d{1,2}\} (.*?) \.{3} success ', + output): success_testcases.append(match) failed_testcases = [] - for match in re.findall(r'.*\{0\} (.*?)[. ]*fail', output): + for match in re.findall(r'.*\{\d{1,2}\} (.*?) \.{3} fail', + output): failed_testcases.append(match) skipped_testcases = [] - for match in re.findall(r'.*\{0\} (.*?)[. ]*skip:', output): + for match in re.findall(r'.*\{\d{1,2}\} (.*?) \.{3} skip:', + output): skipped_testcases.append(match) self.details = {"tests_number": stat['num_tests'], |