git.samba.org
/
amitay
/
build-farm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
909b72b
)
the lcov version has changed, as has the output format
author
Andrew Bartlett
<abartlet@samba.org>
Fri, 17 Feb 2012 08:45:43 +0000
(19:45 +1100)
committer
Andrew Bartlett
<abartlet@samba.org>
Fri, 17 Feb 2012 08:45:43 +0000
(19:45 +1100)
buildfarm/__init__.py
patch
|
blob
|
history
diff --git
a/buildfarm/__init__.py
b/buildfarm/__init__.py
index 380b47b5553ed7dfa61b1d2397bef8489844d626..3708dc224fce1a4f0869e602f28ecf73020de017 100644
(file)
--- 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."""
def lcov_extract_percentage(f):
"""Extract the coverage percentage from the lcov file."""
- m = re.search('\<td class="header
Item".*?\>Code\ \;covered\:\<\/td\>.*?\n.*?\<td class="headerValue
".*?\>([0-9.]+) \%', f.read())
+ m = re.search('\<td class="header
CovTableEntryLo
".*?\>([0-9.]+) \%', f.read())
if m:
return m.group(1)
else:
if m:
return m.group(1)
else: