summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2013-09-16 02:41:16 +0200
committerMarek Olšák <marek.olsak@amd.com>2013-09-23 23:13:53 +0200
commite85194b10adde89c03a76ce0741622778f4cc160 (patch)
tree4ac2fb045f7e54c8da95c8dca6878490b496b1b8 /templates
parentab8be14f4b4d3dbea63fe82f6df6ecfec1879b30 (diff)
Optionally capture dmesg changes for each test and report them in a summary
The Radeon driver writes GPU page faults to dmesg and we need to know which tests caused them. If there is any change in dmesg during a test run, the test result is changed as follows: * pass -> dmesg-warn * warn -> dmesg-warn * fail -> dmesg-fail Dmesg is captured before and after each test and the difference between the two is stored in the test summary. The piglit-run.py parameter which enables this behavior is --dmesg. It's also recommended to use -c0. v2: - address some of Dylan's remarks, mainly bug fixes - fix get_dmesg_diff Reviewed-by: Dylan Baken <baker.dylan.c@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/index.css6
-rw-r--r--templates/test_result.mako7
2 files changed, 11 insertions, 2 deletions
diff --git a/templates/index.css b/templates/index.css
index 875333fde..577370cec 100644
--- a/templates/index.css
+++ b/templates/index.css
@@ -36,7 +36,7 @@ td:first-child > div {
background-color: #c8c838
}
-td.skip, td.warn, td.fail, td.pass, td.trap, td.abort, td.crash {
+td.skip, td.warn, td.fail, td.pass, td.trap, td.abort, td.crash, td.dmesg-warn, td.dmesg-fail {
text-align: right;
}
@@ -59,9 +59,13 @@ tr:nth-child(even) td.skip { background-color: #a0a0a0; }
tr:nth-child(odd) td.warn { background-color: #ff9020; }
tr:nth-child(even) td.warn { background-color: #ef8010; }
+tr:nth-child(odd) td.dmesg-warn { background-color: #ff9020; }
+tr:nth-child(even) td.dmesg-warn { background-color: #ef8010; }
tr:nth-child(odd) td.fail { background-color: #ff2020; }
tr:nth-child(even) td.fail { background-color: #e00505; }
+tr:nth-child(odd) td.dmesg-fail { background-color: #ff2020; }
+tr:nth-child(even) td.dmesg-fail { background-color: #e00505; }
tr:nth-child(odd) td.trap { background-color: #111111; }
tr:nth-child(even) td.trap { background-color: #000000; }
diff --git a/templates/test_result.mako b/templates/test_result.mako
index 410dbb48a..b23fb8e27 100644
--- a/templates/test_result.mako
+++ b/templates/test_result.mako
@@ -46,7 +46,12 @@
<pre>${traceback}</pre>
</td>
</tr>
-
+ <tr>
+ <td>dmesg</td>
+ <td>
+ <pre>${dmesg}</pre>
+ </td>
+ </tr>
</table>
<p><a href="${index}">Back to summary</a></p>
</body>