[igt-dev] [PATCH i-g-t] meson: fix testplan building for old meson

Petri Latvala adrinael at adrinael.net
Mon May 15 17:32:00 UTC 2023


On Mon, May 15, 2023 at 06:39:08PM +0200, Kamil Konieczny wrote:
> Old meson 0.47.2 do not support dictionary adding so fix
> testplan building.
> 
> Cc: Mauro Carvalho Chehab <mauro.chehab at linux.intel.com>
> Signed-off-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>

Acked-by: Petri Latvala <adrinael at adrinael.net>

> ---
>  docs/testplan/meson.build | 11 +++++++----
>  1 file changed, 7 insertions(+), 4 deletions(-)
> 
> diff --git a/docs/testplan/meson.build b/docs/testplan/meson.build
> index 2014f91b5..6454f2933 100644
> --- a/docs/testplan/meson.build
> +++ b/docs/testplan/meson.build
> @@ -27,12 +27,15 @@ xe_test_dict = {
>  		 'xe_tests': { 'input': xe_test_config, 'extra_args': check_testlist }
>  	       }
>  
> -test_dict = {
> +if build_xe
> +	test_dict = {
> +		'kms_tests': { 'input': kms_test_config, 'extra_args': [] },
> +		'xe_tests': { 'input': xe_test_config, 'extra_args': check_testlist }
> +	    }
> +else
> +	test_dict = {
>  	      'kms_tests': { 'input': kms_test_config, 'extra_args': [] }
>  	    }
> -
> -if build_xe
> -	test_dict += xe_test_dict
>  endif
>  
>  foreach testplan, fields: test_dict
> -- 
> 2.39.2
> 


More information about the igt-dev mailing list