donate-cpu-server.py: Fix that results of package "crash" can not be … (#1620)

* donate-cpu-server.py: Fix that results of package "crash" can not be viewed

Rename crash report page from "crash" to "crash.html" so the url ending with "crash" shows the results of package "crash".

* Also rename "diff" and "head" reports to *.html

In case there would be such packages in the future this avoids conflicts.
This commit is contained in:
Sebastian 2019-01-24 12:02:45 +01:00 committed by GitHub
parent cb1a1df0fa
commit bcfd7c0919
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -23,9 +23,9 @@ def strDateTime():
def overviewReport():
html = '<html><head><title>daca@home</title></head><body>\n'
html += '<h1>daca@home</h1>\n'
html += '<a href="crash">Crash report</a><br>\n'
html += '<a href="diff">Diff report</a><br>\n'
html += '<a href="head">HEAD report</a><br>\n'
html += '<a href="crash.html">Crash report</a><br>\n'
html += '<a href="diff.html">Diff report</a><br>\n'
html += '<a href="head.html">HEAD report</a><br>\n'
html += '<a href="latest.html">Latest results</a><br>\n'
html += '<a href="time.html">Time report</a><br>\n'
html += '<a href="check_library_function_report.html">checkLibraryFunction report</a><br>\n'
@ -573,10 +573,10 @@ class HttpClientThread(Thread):
elif url == 'latest.html':
html = latestReport(self.latestResults)
httpGetResponse(self.connection, html, 'text/html')
elif url == 'crash':
elif url == 'crash.html':
html = crashReport()
httpGetResponse(self.connection, html, 'text/html')
elif url == 'diff':
elif url == 'diff.html':
html = diffReport(self.resultPath)
httpGetResponse(self.connection, html, 'text/html')
elif url.startswith('difftoday-'):
@ -587,7 +587,7 @@ class HttpClientThread(Thread):
messageId = url[5:]
text = diffMessageIdReport(self.resultPath, messageId)
httpGetResponse(self.connection, text, 'text/plain')
elif url == 'head':
elif url == 'head.html':
html = headReport(self.resultPath)
httpGetResponse(self.connection, html, 'text/html')
elif url.startswith('headtoday-'):