summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinda Wang <wangwulin@huawei.com>2017-11-15 06:40:51 +0000
committerLinda Wang <wangwulin@huawei.com>2017-11-28 02:04:20 +0000
commitf962e5dd6a92f371c9a829972041f9afb1cb5314 (patch)
tree2215b65ac81b1e373e2dbe31984fd5f88dc25801
parent732b27391b5dcff3a317b6f9cc3d5be3659a15b2 (diff)
Fix the regular expression for refstack
Otherwise, this line could not be matched: {0} tempest.api.identity.v3.test_tokens.TokensV3Test.test_create_token [0.143237s] ... ok -> the matched result: tempest.api.identity.v3.test_t Change-Id: I97282a9c98a889a015a40f9ad2d700906bb88fb1 Signed-off-by: Linda Wang <wangwulin@huawei.com> (cherry picked from commit 843de6db7838dc20fa4a1f44731ea47cbcffa250)
-rw-r--r--functest/opnfv_tests/openstack/refstack_client/refstack_client.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/functest/opnfv_tests/openstack/refstack_client/refstack_client.py b/functest/opnfv_tests/openstack/refstack_client/refstack_client.py
index 42befe221..fe32da66b 100644
--- a/functest/opnfv_tests/openstack/refstack_client/refstack_client.py
+++ b/functest/opnfv_tests/openstack/refstack_client/refstack_client.py
@@ -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)