From 683973fe7908ddd23971c1cadbbdcd51b8ec4bd6 Mon Sep 17 00:00:00 2001 From: Daniel Lehmberg Date: Mon, 25 Feb 2019 15:31:54 +0100 Subject: [PATCH] WIP check for coverage --- .../ContinuousIntegration/collect_line_and_branch_coverage.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Tools/ContinuousIntegration/collect_line_and_branch_coverage.py b/Tools/ContinuousIntegration/collect_line_and_branch_coverage.py index 606e09ac1..903f2aa88 100644 --- a/Tools/ContinuousIntegration/collect_line_and_branch_coverage.py +++ b/Tools/ContinuousIntegration/collect_line_and_branch_coverage.py @@ -48,16 +48,14 @@ def extract_line_and_branch_coverage(module_names): # TODO: Regex seems be be broken on Windows CI worker. Find out why! regex_pattern = re.compile(r"Total.*?([0-9]{1,3})\s?%.*?([0-9]{1,3})\s?%") - print(coverage_report) - match = regex_pattern.search(coverage_report) - exit() if match: line_coverage = float(match.group(1)) branch_coverage = float(match.group(2)) module_to_coverage[module] = (line_coverage, branch_coverage) else: + print(coverage_report) raise Exception("Coverage data not found for module: {}".format(module)) return module_to_coverage -- GitLab