diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-06-13 14:56:23 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-06-13 14:59:36 +0200 |
commit | f3b6c2e235476e29eca1d744ba403fdeadc0f5fa (patch) | |
tree | 7d3375ddad1346f9c13602b8332d0106f5f531c3 | |
parent | 322d7512499754868b9080d5fa9233806e2edb6a (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>
(cherry picked from commit da3c805f8829f67d4d4154cd24f322ccf516b450)
-rw-r--r-- | functest/opnfv_tests/vnf/ims/clearwater_ims_base.py | 4 |
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)) |