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>
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))