summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2018-05-05 18:06:18 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-05-05 18:06:18 +0000
commit1b0c4e1e2466dd92585ddb06ff00198ae62e2ebd (patch)
treef8f6a15c6ce96d6cbf1af50aec4529d303a1c287
parente32353a740a3aaa76031fe9c2372b11f88add1bb (diff)
parent9286e052afe194c400479275edaa2aaf8ed52de8 (diff)
Merge "Functest fail to parse refstack results"
-rw-r--r--functest/opnfv_tests/openstack/tempest/tempest.py9
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 13391ca82..d02c114a6 100644
--- a/functest/opnfv_tests/openstack/tempest/tempest.py
+++ b/functest/opnfv_tests/openstack/tempest/tempest.py
@@ -217,13 +217,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'],