diff options
author | MatthewLi <matthew.lijun@huawei.com> | 2017-02-04 02:41:35 -0500 |
---|---|---|
committer | MatthewLi <matthew.lijun@huawei.com> | 2017-02-04 03:46:18 -0500 |
commit | e0e4b564fda5cc0d75afc4e069f2b944b7429a4b (patch) | |
tree | b4b5efab34753b6e687c85c44b1de91fe38925c1 /functest/opnfv_tests/openstack/tempest/tempest.py | |
parent | df8e07ba043bc150ae9640af2cee5c8c10ccc47b (diff) |
bugfix for finding tempest failed testcase
JIRA: FUNCTEST-719
1.in new tempest version, FAILED-->fail
see log https://build.opnfv.org/ci/view/dovetail/job/dovetail-compass-virtual-debug-master/163/artifact/results/tempest/tempest.log
2.there is a need to show the skipped testcase in tempest
Change-Id: If753c59971362625ae0797a0161e07b1e4ff94c8
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
Diffstat (limited to 'functest/opnfv_tests/openstack/tempest/tempest.py')
-rw-r--r-- | functest/opnfv_tests/openstack/tempest/tempest.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/functest/opnfv_tests/openstack/tempest/tempest.py b/functest/opnfv_tests/openstack/tempest/tempest.py index 9c19a147..e1a223a7 100644 --- a/functest/opnfv_tests/openstack/tempest/tempest.py +++ b/functest/opnfv_tests/openstack/tempest/tempest.py @@ -249,12 +249,16 @@ class TempestCommon(testcase_base.TestcaseBase): output = logfile.read() error_logs = "" - for match in re.findall('(.*?)[. ]*FAILED', output): + for match in re.findall('(.*?)[. ]*fail ', output): error_logs += match + skipped_testcase = "" + for match in re.findall('(.*?)[. ]*skip:', output): + skipped_testcase += match self.details = {"tests": int(num_tests), "failures": int(num_failures), - "errors": error_logs} + "errors": error_logs, + "skipped": skipped_testcase} except Exception: success_rate = 0 |