summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2012-12-17 01:44:02 -0800
committerKenneth Graunke <kenneth@whitecape.org>2012-12-17 01:59:53 -0800
commit256fb419da41613cb3f83806802ae410d2f3bd71 (patch)
tree22b51f3661206871083e2e34f4a2322dc8ae4f42
parentab3aae99f261febf04c6702f101cbd48c9b6f0d5 (diff)
actually commit stuff...
-rwxr-xr-xprograms/report.py4
-rw-r--r--programs/templates/detail.html22
2 files changed, 24 insertions, 2 deletions
diff --git a/programs/report.py b/programs/report.py
index 6ff97b3..8922eaf 100755
--- a/programs/report.py
+++ b/programs/report.py
@@ -41,7 +41,7 @@ def writefile(filename, text):
templateDir = path.join(path.dirname(path.realpath(__file__)), 'templates')
templates = {
'index': readfile(path.join(templateDir, 'index.html')),
- 'result_detail': readfile(path.join(templateDir, 'result_detail.html')),
+ 'detail': readfile(path.join(templateDir, 'detail.html')),
}
#############################################################################
@@ -263,7 +263,7 @@ def writeDetailPages(dirname, run_name, results, col):
r = results[test][col]
if r and interesting(r['result']):
writefile(path.join(dirname, detailFile(test)),
- templates['result_detail'] % dict(r, run=run_name, esc_test=escape(test), test=test))
+ templates['detail'] % dict(r, run=run_name, esc_test=escape(test), test=test))
#############################################################################
##### Main program
diff --git a/programs/templates/detail.html b/programs/templates/detail.html
new file mode 100644
index 0000000..64da0f5
--- /dev/null
+++ b/programs/templates/detail.html
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <title>Results for %(run)s: %(test)s</title>
+ <link rel="stylesheet" href="../detail.css"/>
+ </head>
+ <body>
+ <h1>%(run)s:</h1>
+ <h2 class="%(result)s">%(test)s &#8212; %(result)s</h1>
+ <h3>Command:</h3>
+ <pre>%(command)s</pre>
+ <h3>Output:</h3>
+ <pre>%(output)s</pre>
+ <h3>Errors:</h3>
+ <pre>%(errors)s</pre>
+ <h3>Return code:</h3>
+ <pre>%(return_code)s</pre>
+ </body>
+</html>