aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-06-13 14:56:23 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2018-06-13 14:56:23 +0200
commitda3c805f8829f67d4d4154cd24f322ccf516b450 (patch)
treea773a2a804339515f7d3da75639e0874e79c1694
parent5a94beb62293151ef6f4e94ed500579de1f3673e (diff)
Fix result parsing in cloudify_ims
The previous regex failed when errors are listed [1]. [1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-fraser/194/console Change-Id: I57c8bfb8968555c3d43267a06f2bb9a2b95a3268 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r--functest/opnfv_tests/vnf/ims/clearwater_ims_base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/functest/opnfv_tests/vnf/ims/clearwater_ims_base.py b/functest/opnfv_tests/vnf/ims/clearwater_ims_base.py
index ae01cfa3e..6b54d220a 100644
--- a/functest/opnfv_tests/vnf/ims/clearwater_ims_base.py
+++ b/functest/opnfv_tests/vnf/ims/clearwater_ims_base.py
@@ -154,8 +154,8 @@ class ClearwaterOnBoardingBase(vnf.VnfOnBoarding):
vims_test_result = {}
try:
grp = re.search(
- '(\d+) failures out of (\d+) tests run\n.*?'
- '(\d+) tests skipped', result)
+ r'(\d+) failures out of (\d+) tests run.*'
+ 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))