[Piglit] [PATCH] gleantest.py: Return skip when appropriate
Dylan Baker
baker.dylan.c at gmail.com
Tue Oct 15 00:28:09 CEST 2013
Currently glean can only return dmesg-warn, dmesg-fail, fail, and pass.
Which means that skip will never be returned even if should be. This
patch adds a catch to find a skip status and return it.
Signed-off-by: Dylan Baker <baker.dylan.c at gmail.com>
---
framework/gleantest.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/framework/gleantest.py b/framework/gleantest.py
index e5ea7b3..8099022 100644
--- a/framework/gleantest.py
+++ b/framework/gleantest.py
@@ -42,7 +42,9 @@ class GleanTest(ExecTest):
self.name = name
def interpretResult(self, out, returncode, results, dmesg):
- if out.find('FAIL') >= 0:
+ if "{'result': 'skip'}" in out:
+ results['result'] = 'skip'
+ elif out.find('FAIL') >= 0:
results['result'] = 'dmesg-fail' if dmesg != '' else 'fail'
else:
results['result'] = 'dmesg-warn' if dmesg != '' else 'pass'
--
1.8.1.5
More information about the Piglit
mailing list