aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2017-02-07 07:38:58 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-02-07 07:38:58 +0000
commitde489169452cd732dc90dc7eded0ff1ee5f68e52 (patch)
tree91de37af5c165aa890767336b64b1626537cca8f
parent8ce8d3e9b4144c221be476755cc4c4311f20bc9f (diff)
parente0e4b564fda5cc0d75afc4e069f2b944b7429a4b (diff)
Merge "bugfix for finding tempest failed testcase"
-rw-r--r--functest/opnfv_tests/openstack/tempest/tempest.py8
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 9c19a1475..e1a223a7a 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