Commit cc07951c authored by Matěj Cepl's avatar Matěj Cepl Committed by Paul Berry

Don't add slash to the start of HREFs of individual test results.

Otherwise the browser thinks they are in the root of the current
hierarchy, whereas they are in the same folder as index.html.
Signed-off-by: default avatarMatěj Cepl <>
Reviewed-by: Paul Berry's avatarPaul Berry <>
parent d4dcd97c
......@@ -148,6 +148,12 @@ def writeTestrunHtml(testrun, filename):
writefile(filename, Testrun % locals())
def hrefFromParts(codename, path):
outStr = codename + '/' + testPathToHtmlFilename(path)
if outStr[0] == '/':
outStr = outStr[1:]
return outStr
def buildTestSummary(indent, alternate, testsummary):
tenindent = 10 - indent
path = testsummary.path
......@@ -155,7 +161,7 @@ def buildTestSummary(indent, alternate, testsummary):
testruns = "".join([IndexTestTestrun % {
'alternate': alternate,
'status': result.status,
'link': result.testrun.codename + '/' + testPathToHtmlFilename(path)
'link': hrefFromParts(result.testrun.codename, path)
} for result in testsummary.results])
return IndexTest % locals()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment