diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-07-30 12:45:26 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-07-30 12:49:15 +0200 |
commit | 1951044309f5d36a6df3fdd6e74f0581a798f402 (patch) | |
tree | 522f6a5f20e90bcc847820807d70063a714ca204 /functest/opnfv_tests/vnf | |
parent | e813e044715dca61a9ec7139d591fb1716830367 (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>
(cherry picked from commit 3d6f7e8b3a6cfe4c926bd93d45861c80970e35f7)
Diffstat (limited to 'functest/opnfv_tests/vnf')
-rw-r--r-- | functest/opnfv_tests/vnf/ims/clearwater.py | 4 |
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)) |