Merge "Fix the regular expression for refstack"
authorJose Lausuch <jalausuch@suse.com>
Wed, 15 Nov 2017 12:27:31 +0000 (12:27 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Wed, 15 Nov 2017 12:27:31 +0000 (12:27 +0000)
functest/opnfv_tests/openstack/refstack_client/refstack_client.py

index 42befe2..fe32da6 100644 (file)
@@ -126,13 +126,13 @@ class RefstackClient(testcase.TestCase):
                 num_failures = match[1]
                 LOGGER.info("".join(match))
             success_testcases = []
-            for match in re.findall(r"\{0\} (.*?)[. ]*ok", output):
+            for match in re.findall(r"\{0\} (.*?) \.{3} ok", output):
                 success_testcases.append(match)
             failed_testcases = []
-            for match in re.findall(r"\{0\} (.*?)[. ]*FAILED", output):
+            for match in re.findall(r"\{0\} (.*?) \.{3} FAILED", output):
                 failed_testcases.append(match)
             skipped_testcases = []
-            for match in re.findall(r"\{0\} (.*?)[. ]*SKIPPED:", output):
+            for match in re.findall(r"\{0\} (.*?) \.{3} SKIPPED:", output):
                 skipped_testcases.append(match)
 
             num_executed = int(num_tests) - int(num_skipped)