aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/lint/meson.build18
1 files changed, 10 insertions, 8 deletions
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