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

Kamil Konieczny kamil.konieczny at linux.intel.com
Mon May 15 16:39:08 UTC 2023


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>
---
 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