[Piglit] [PATCH] Fix oglconform integration.

Kenneth Graunke kenneth at whitecape.org
Mon Oct 19 23:35:27 PDT 2015


Everything reported 'fail' all the time because interpretResult()
wasn't updated amdist all the Piglit framework rewriting.
---
 tests/oglconform.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

This seems to get it working again, but honestly at this point I hardly
even recognize the codebase...

diff --git a/tests/oglconform.py b/tests/oglconform.py
index 4ec127e..cdae4d4 100644
--- a/tests/oglconform.py
+++ b/tests/oglconform.py
@@ -55,12 +55,12 @@ class OGLCTest(Test):
                                         '-test', category, subtest])
 
     def interpret_result(self):
-        if self.skip_re.search(self.result['out']) is not None:
-            self.result['result'] = 'skip'
-        elif re.search('Total Passed : 1', self.result['out']) is not None:
-            self.result['result'] = 'pass'
+        if self.skip_re.search(self.result.out) is not None:
+            self.result.result = 'skip'
+        elif re.search('Total Passed : 1', self.result.out) is not None:
+            self.result.result = 'pass'
         else:
-            self.result['result'] = 'fail'
+            self.result.result = 'fail'
 
 # Create a new top-level 'oglconform' category
 
-- 
2.6.1



More information about the Piglit mailing list