From 81700d9aa6b2a92c1f7848af4c5f547272144784 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Mon, 12 Feb 2024 14:15:51 +0000 Subject: [PATCH] tests: Skip lint tests if bash is not available They all require bash. Signed-off-by: Philip Withnall --- tests/meson.build | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/tests/meson.build b/tests/meson.build index ca739c458..a2822d4f5 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -8,14 +8,16 @@ lint_scripts = [ 'shellcheck.sh', ] -foreach test_name : lint_scripts - test( - test_name, files(test_name), - env : common_test_env, - suite : 'lint', - protocol : 'tap', - ) -endforeach +if have_bash + foreach test_name : lint_scripts + test( + test_name, files(test_name), + env : common_test_env, + suite : 'lint', + protocol : 'tap', + ) + endforeach +endif test( 'check-missing-install-tag.py',