[Piglit] [PATCH] framework/exectest.py: Set returncode to 0 when executable is missing.

jfonseca at vmware.com jfonseca at vmware.com
Tue Jun 10 12:16:04 PDT 2014


From: José Fonseca <jfonseca at vmware.com>

Just like piglit_report_result(PIGLIT_SKIP) does.

Otherwise these tests are considered failures or -- with my commit
058e0f8a1e536b68ef43d27ada80645845a39e19 -- crashes.
---
 framework/exectest.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/framework/exectest.py b/framework/exectest.py
index a833066..a5e06ae 100644
--- a/framework/exectest.py
+++ b/framework/exectest.py
@@ -205,7 +205,7 @@ class Test(object):
                 out = ("PIGLIT: {'result': 'skip'}\n"
                        "Test executable not found.\n")
                 err = ""
-                returncode = None
+                returncode = 0
             else:
                 raise e
 
-- 
1.9.1



More information about the Piglit mailing list