the lcov version has changed, as has the output format
authorAndrew Bartlett <abartlet@samba.org>
Fri, 17 Feb 2012 08:45:43 +0000 (19:45 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 17 Feb 2012 08:45:43 +0000 (19:45 +1100)
buildfarm/__init__.py

index 380b47b5553ed7dfa61b1d2397bef8489844d626..3708dc224fce1a4f0869e602f28ecf73020de017 100644 (file)
@@ -43,7 +43,7 @@ def read_trees_from_conf(path):
 
 def lcov_extract_percentage(f):
     """Extract the coverage percentage from the lcov file."""
 
 def lcov_extract_percentage(f):
     """Extract the coverage percentage from the lcov file."""
-    m = re.search('\<td class="headerItem".*?\>Code\&nbsp\;covered\:\<\/td\>.*?\n.*?\<td class="headerValue".*?\>([0-9.]+) \%', f.read())
+    m = re.search('\<td class="headerCovTableEntryLo".*?\>([0-9.]+) \%', f.read())
     if m:
         return m.group(1)
     else:
     if m:
         return m.group(1)
     else: