[Piglit] [PATCH] deqp: Add Mesa version overrides for khr_gl* testlist generation.

Eric Anholt eric at anholt.net
Thu Jun 21 00:52:34 UTC 2018


The runner will assertion fail if it can't create an appropriate
context, so just force the version so that we can get our testlists
generated.
---
 framework/test/deqp.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/framework/test/deqp.py b/framework/test/deqp.py
index 2c37f6974ebf..ab3350c3e7e7 100644
--- a/framework/test/deqp.py
+++ b/framework/test/deqp.py
@@ -117,9 +117,13 @@ def gen_caselist_txt(bin_, caselist, extra_args):
 
     # TODO: need to catch some exceptions here...
     with open(os.devnull, 'w') as d:
+        env = os.environ.copy()
+        env['MESA_GL_VERSION_OVERRIDE'] = '4.6'
+        env['MESA_GLES_VERSION_OVERRIDE'] = '3.2'
+
         subprocess.check_call(
             [bin_, '--deqp-runmode=txt-caselist'] + extra_args, cwd=basedir,
-            stdout=d, stderr=d)
+            stdout=d, stderr=d, env=env)
     assert os.path.exists(caselist_path)
     return caselist_path
 
-- 
2.17.0



More information about the Piglit mailing list