[Piglit] [PATCH 2/2] gleantest.py: If returncode is not 0 mark tests as fail

Dylan Baker baker.dylan.c at gmail.com
Fri Mar 7 17:50:49 PST 2014


Signed-off-by: Dylan Baker <baker.dylan.c at gmail.com>
---
 framework/gleantest.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/framework/gleantest.py b/framework/gleantest.py
index 4abb54a..30d4aff 100644
--- a/framework/gleantest.py
+++ b/framework/gleantest.py
@@ -44,7 +44,7 @@ class GleanTest(ExecTest):
     def interpretResult(self, out, returncode, results):
         if "{'result': 'skip'}" in out:
             results['result'] = 'skip'
-        elif out.find('FAIL') >= 0:
+        elif out.find('FAIL') >= 0 or returncode != 0:
             results['result'] = 'fail'
         else:
             results['result'] = 'pass'
-- 
1.9.0



More information about the Piglit mailing list