[igt-dev] [PATCH i-g-t] testplan/meson.build: only run igt_runner if it is compiled

Mauro Carvalho Chehab mauro.chehab at linux.intel.com
Tue Apr 4 05:02:21 UTC 2023


From: Mauro Carvalho Chehab <mchehab at kernel.org>

While the runner is built by default, if jsonc is not found, it
won't be build. This will cause the documentation validation test
to cause the build to fail.

Prevent that by adding an extra check if jsonc is found, as this
is the same condition that it is used to build igt_runner.

Signed-off-by: Mauro Carvalho Chehab <mchehab at kernel.org>
---
 docs/testplan/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/testplan/meson.build b/docs/testplan/meson.build
index 4c67ec42fc69..88029bee5af3 100644
--- a/docs/testplan/meson.build
+++ b/docs/testplan/meson.build
@@ -9,7 +9,7 @@ stylesheet = join_paths(meson.current_source_dir(), 'testplan.css')
 xe_test_config = join_paths(source_root, 'tests', 'xe', 'xe_test_config.json')
 
 check_testlist = []
-if build_tests
+if build_tests and jsonc.found()
 	# Check if documentation matches the actual tests
 	check_testlist = [ '--check-testlist', '--igt-build-path', build_root ]
 else
-- 
2.39.2



More information about the igt-dev mailing list