[PATCH] D31038: Fix broken links and displaced coloring in coverage-report-server.py
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 20 07:18:16 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL298250: [sancov] Fix broken links and displaced coloring in coverage-report-server.py (authored by chefmax).
Changed prior to commit:
https://reviews.llvm.org/D31038?vs=92013&id=92323#toc
Repository:
rL LLVM
https://reviews.llvm.org/D31038
Files:
llvm/trunk/tools/sancov/coverage-report-server.py
Index: llvm/trunk/tools/sancov/coverage-report-server.py
===================================================================
--- llvm/trunk/tools/sancov/coverage-report-server.py
+++ llvm/trunk/tools/sancov/coverage-report-server.py
@@ -138,7 +138,7 @@
if not file_coverage:
continue
filelist.append(
- "<tr><td><a href=\"/{name}\">{name}</a></td>"
+ "<tr><td><a href=\"./{name}\">{name}</a></td>"
"<td>{coverage}%</td></tr>".format(
name=html.escape(filename, quote=True),
coverage=format_pct(file_coverage)))
@@ -165,7 +165,7 @@
["<span class='{cls}'>{line} </span>".format(
line=html.escape(line.rstrip()),
cls=linemap.get(line_no, ""))
- for line_no, line in enumerate(f)])
+ for line_no, line in enumerate(f, start=1)])
response = string.Template(CONTENT_PAGE_TMPL).safe_substitute(
path=self.path[1:],
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31038.92323.patch
Type: text/x-patch
Size: 1168 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170320/c51ee3a5/attachment.bin>
More information about the llvm-commits
mailing list