summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-07-30 12:45:26 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2018-07-30 12:45:26 +0200
commit3d6f7e8b3a6cfe4c926bd93d45861c80970e35f7 (patch)
treec9c15088315a3175c6a1dc0fac58324adf66f5c8
parent4a3508ed3bf4a92e22e48344da98c4afeb3ea8c2 (diff)
Fix clearwater test results parsing
Before it could extract part of the skipped tests [1]. [1] https://build.opnfv.org/ci/view/functest/job/functest-compass-baremetal-daily-master/209/console Change-Id: I7e7564cb7b96705940051fccf0ff1987f34bb962 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r--functest/opnfv_tests/vnf/ims/clearwater.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/functest/opnfv_tests/vnf/ims/clearwater.py b/functest/opnfv_tests/vnf/ims/clearwater.py
index 96f1b40c6..57857b563 100644
--- a/functest/opnfv_tests/vnf/ims/clearwater.py
+++ b/functest/opnfv_tests/vnf/ims/clearwater.py
@@ -199,8 +199,8 @@ class ClearwaterTesting(object):
vims_test_result = {}
try:
grp = re.search(
- r'(\d+) failures out of (\d+) tests run.*'
- r'(\d+) tests skipped', result, re.MULTILINE | re.DOTALL)
+ r'^(\d+) failures out of (\d+) tests run.*\n'
+ r'(\d+) tests skipped$', result, re.MULTILINE | re.DOTALL)
assert grp
vims_test_result["failures"] = int(grp.group(1))
vims_test_result["total"] = int(grp.group(2))