From: Andrew Bartlett Date: Fri, 17 Feb 2012 08:45:43 +0000 (+1100) Subject: the lcov version has changed, as has the output format X-Git-Url: http://git.samba.org/?p=build-farm.git;a=commitdiff_plain;h=2be44d5bd6d4370ebe81a28b10f224d958f920c8 the lcov version has changed, as has the output format --- diff --git a/buildfarm/__init__.py b/buildfarm/__init__.py index 380b47b5..3708dc22 100644 --- a/buildfarm/__init__.py +++ b/buildfarm/__init__.py @@ -43,7 +43,7 @@ def read_trees_from_conf(path): def lcov_extract_percentage(f): """Extract the coverage percentage from the lcov file.""" - m = re.search('\Code\ \;covered\:\<\/td\>.*?\n.*?\([0-9.]+) \%', f.read()) + m = re.search('\([0-9.]+) \%', f.read()) if m: return m.group(1) else: