From e85194b10adde89c03a76ce0741622778f4cc160 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Mon, 16 Sep 2013 02:41:16 +0200 Subject: 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 --- templates/index.css | 6 +++++- templates/test_result.mako | 7 ++++++- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'templates') 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 @@
${traceback}
- + + dmesg + +
${dmesg}
+ +

Back to summary

-- cgit v1.2.3