[Piglit] [PATCH 2/2] igt: Enable dmesg checking by default

Daniel Vetter daniel.vetter at ffwll.ch
Mon Nov 11 13:04:53 PST 2013


An awful lot of tests rely on in-kernel checks to detect issues. So
we better make them fail properly.

Note that the dmesg check relies on dmesg timestamps to work correctly.
If you don't have them it won't work.

Cc: Paulo Zanoni <przanoni at gmail.com>
---
 tests/igt.tests | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/igt.tests b/tests/igt.tests
index 0f19c82..1d0da50 100644
--- a/tests/igt.tests
+++ b/tests/igt.tests
@@ -60,6 +60,9 @@ class IGTTest(ExecTest):
 	else:
 	    results['result'] = 'dmesg-fail' if dmesg != '' else 'fail'
 	return out
+    def run(self, env):
+        env.dmesg = True
+        return ExecTest.run(self, env)
 
 def listTests(listname):
     oldDir = os.getcwd()
-- 
1.8.1.4



More information about the Piglit mailing list