On 4 October 2011 10:39, Matěj Cepl <span dir="ltr">&lt;<a href="mailto:mcepl@redhat.com">mcepl@redhat.com</a>&gt;</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 &lt;<a href="mailto:mcepl@redhat.com">mcepl@redhat.com</a>&gt;<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 + &#39;/&#39; + testPathToHtmlFilename(path)<br>
+       if outStr[0] == &#39;/&#39;:<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 = &quot;&quot;.join([IndexTestTestrun % {<br>
                &#39;alternate&#39;: alternate,<br>
                &#39;status&#39;: result.status,<br>
-               &#39;link&#39;: result.testrun.codename + &#39;/&#39; + testPathToHtmlFilename(path)<br>
+               &#39;link&#39;: 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 &lt;<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>&gt;<br><br>Unless someone objects I&#39;ll push this upstream tomorrow.<br>