diff options
author | Nicolai Haehnle <nhaehnle@gmail.com> | 2008-08-27 22:32:41 +0200 |
---|---|---|
committer | Nicolai Haehnle <nhaehnle@gmail.com> | 2008-08-27 22:32:41 +0200 |
commit | a6ee98404fbe63d19d9097641497d9e52e3d45e0 (patch) | |
tree | 683c00587fe7288296ce9f057281c2512b55d5af /piglit-summary-html.py | |
parent | 59750efad2071cbed9422baa700721c3935d96c8 (diff) |
piglit-summary-html.py: Add glxinfo/lspci output to HTML summaries
Diffstat (limited to 'piglit-summary-html.py')
-rwxr-xr-x | piglit-summary-html.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/piglit-summary-html.py b/piglit-summary-html.py index 387fa85dc..5956378ca 100755 --- a/piglit-summary-html.py +++ b/piglit-summary-html.py @@ -36,7 +36,7 @@ import framework.summary ############################################################################# def testPathToHtmlFilename(path): - return filter(lambda s: s.isalnum() or s == '_', path.replace('/', '__')) + '.html' + return 'test_' + filter(lambda s: s.isalnum() or s == '_', path.replace('/', '__')) + '.html' ############################################################################# @@ -71,6 +71,8 @@ IndexGroupGroup = readfile(templatedir + 'index_groupgroup.html') IndexTest = readfile(templatedir + 'index_test.html') IndexTestTestrun = readfile(templatedir + 'index_test_testrun.html') +Testrun = readfile(templatedir + 'testrun.html') + SummaryPages = { 'all': 'index.html', 'changes': 'changes.html', @@ -129,6 +131,13 @@ def writeResultHtml(test, testResult, filename): writefile(filename, Result % locals()) +def writeTestrunHtml(testrun, filename): + detaildict = dict(filter(lambda item: item[0] in testrun.globalkeys, testrun.__dict__.items())) + details = buildDetails(detaildict) + name = testrun.name + codename = testrun.codename + + writefile(filename, Testrun % locals()) def buildTestSummary(indent, alternate, testsummary): tenindent = 10 - indent @@ -298,6 +307,7 @@ def main(): tr.codename = filter(lambda s: s.isalnum(), tr.name) dirname = summaryDir + '/' + tr.codename core.checkDir(dirname, False) + writeTestrunHtml(tr, dirname + '/index.html') for test in summary.allTests(): filename = dirname + '/' + testPathToHtmlFilename(test.path) writeResultHtml(test, test.results[j], filename) |