On 4 October 2011 10:39, Matěj Cepl <span dir="ltr"><<a href="mailto:mcepl@redhat.com">mcepl@redhat.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Otherwise the browser thinks they are in the root of the current<br>
hierarchy, whereas they are in the same folder as index.html.<br>
<br>
Signed-off-by: Matěj Cepl <<a href="mailto:mcepl@redhat.com">mcepl@redhat.com</a>><br>
---<br>
piglit-summary-html.py | 8 +++++++-<br>
1 files changed, 7 insertions(+), 1 deletions(-)<br>
<br>
diff --git a/piglit-summary-html.py b/piglit-summary-html.py<br>
index 6e5082c..a255a15 100755<br>
--- a/piglit-summary-html.py<br>
+++ b/piglit-summary-html.py<br>
@@ -148,6 +148,12 @@ def writeTestrunHtml(testrun, filename):<br>
<br>
writefile(filename, Testrun % locals())<br>
<br>
+def hrefFromParts(codename, path):<br>
+ outStr = codename + '/' + testPathToHtmlFilename(path)<br>
+ if outStr[0] == '/':<br>
+ outStr = outStr[1:]<br>
+ return outStr<br>
+<br>
def buildTestSummary(indent, alternate, testsummary):<br>
tenindent = 10 - indent<br>
path = testsummary.path<br>
@@ -155,7 +161,7 @@ def buildTestSummary(indent, alternate, testsummary):<br>
testruns = "".join([IndexTestTestrun % {<br>
'alternate': alternate,<br>
'status': result.status,<br>
- 'link': result.testrun.codename + '/' + testPathToHtmlFilename(path)<br>
+ 'link': hrefFromParts(result.testrun.codename, path)<br>
} for result in testsummary.results])<br>
<br>
return IndexTest % locals()<br>
<font color="#888888">--<br>
1.7.6.4<br>
<br>
_______________________________________________<br>
Piglit mailing list<br>
<a href="mailto:Piglit@lists.freedesktop.org">Piglit@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/piglit" target="_blank">http://lists.freedesktop.org/mailman/listinfo/piglit</a><br>
</font></blockquote></div><br>Reviewed-by: Paul Berry <<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>><br><br>Unless someone objects I'll push this upstream tomorrow.<br>