From 40cf01fefae08c4d750e3c42e3aaede9293ea881 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 19 Jan 2025 22:30:31 -0500 Subject: Fix building lint tests when serdi is unavailable --- test/lint/meson.build | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'test/lint/meson.build') diff --git a/test/lint/meson.build b/test/lint/meson.build index b89af7d7..7e024cb5 100644 --- a/test/lint/meson.build +++ b/test/lint/meson.build @@ -94,14 +94,16 @@ if pylint.found() endif # Check Turtle formatting with serdi -foreach ttl_file_path : ttl_metadata_file_paths - test( - ttl_file_path.substring(3).underscorify(), - check_formatting_py, - args: [files(ttl_file_path), serdi, '-o', 'turtle'], - suite: 'data', - ) -endforeach +if is_variable('serdi') + foreach ttl_file_path : ttl_metadata_file_paths + test( + ttl_file_path.substring(3).underscorify(), + check_formatting_py, + args: [files(ttl_file_path), serdi, '-o', 'turtle'], + suite: 'data', + ) + endforeach +endif if not meson.is_subproject() # Check release metadata -- cgit v1.2.1