From da3c805f8829f67d4d4154cd24f322ccf516b450 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Wed, 13 Jun 2018 14:56:23 +0200 Subject: Fix result parsing in cloudify_ims MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- functest/opnfv_tests/vnf/ims/clearwater_ims_base.py | 4 ++-- 1 file 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)) -- cgit 1.2.3-korg