[Piglit] [PATCH 1/2] framework: Ignore info/debug dmesg output

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


i-g-t has a bunch of testcase that cause informational output. In
addition I usually enable drm debugging on my machines, so the
kms tests cause massive amounts of spew.

I've thought whether an option would be useful, but then I didn't
really see any reason why we should ever care about debug/info
messages. Hence the default.

Cc: Marek Olšák <marek.olsak at amd.com>
---
 framework/exectest.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/framework/exectest.py b/framework/exectest.py
index bfb33da..986d803 100644
--- a/framework/exectest.py
+++ b/framework/exectest.py
@@ -38,7 +38,7 @@ else:
 
 
 def read_dmesg():
-    proc = subprocess.Popen('dmesg', stdout=subprocess.PIPE)
+    proc = subprocess.Popen(['dmesg', '-l', 'emerg,alert,crit,err,warn,notice'], stdout=subprocess.PIPE)
     return proc.communicate()[0].rstrip('\n')
 
 def get_dmesg_diff(old, new):
-- 
1.8.1.4



More information about the Piglit mailing list