Fix clearwater test results parsing 41/60341/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Mon, 30 Jul 2018 10:45:26 +0000 (12:45 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Mon, 30 Jul 2018 10:45:26 +0000 (12:45 +0200)
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>
functest/opnfv_tests/vnf/ims/clearwater.py

index 96f1b40..57857b5 100644 (file)
@@ -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))