[Piglit] [PATCH 5/6] es3conform.tests: Check dmesg

Dylan Baker baker.dylan.c at gmail.com
Tue Nov 12 07:54:03 PST 2013


This allows es3conform to use the dmesg class.
NOTE: can someone confirm that this works?
---
 tests/es3conform.tests | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/tests/es3conform.tests b/tests/es3conform.tests
index 65e48af..42a6017 100644
--- a/tests/es3conform.tests
+++ b/tests/es3conform.tests
@@ -54,9 +54,16 @@ class GTFTest(ExecTest):
     def interpretResult(self, out, returncode, results, dmesg):
         mo = self.pass_re.search(out)
         if mo is not None and int(mo.group('passed')) > 0:
-            results['result'] = 'dmesg-warn' if dmesg else 'pass'
+            if not dmesg:
+                results['result'] = 'pass'
+            else:
+                if dmesg[1]:
+                    results['result'] = 'fail'
+                else:
+                    results['result'] = 'warn'
+
         else:
-            results['result'] = 'dmesg-fail' if dmesg else 'fail'
+            results['result'] = 'fail'
         return out
 
 def populateTests(runfile):
-- 
1.8.1.5



More information about the Piglit mailing list