[Piglit] [PATCH] deqp: Add Mesa version overrides for khr_gl* testlist generation.
Dylan Baker
dylan at pnwbakers.com
Fri Jun 22 17:15:23 UTC 2018
Quoting Eric Anholt (2018-06-20 17:52:34)
> 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
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/piglit
Acked-by: Dylan Baker <dylan at pnwbakers.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/piglit/attachments/20180622/2004be68/attachment.sig>
More information about the Piglit
mailing list