From 26fff16b901c5b7dac203a00fb6ca52cf451361b Mon Sep 17 00:00:00 2001 From: Franck Bui Date: Tue, 13 Feb 2024 18:16:19 +0100 Subject: [PATCH] test: make sure that sd-boot is installed before testing bootctl bootctl can be installed also non uefi systems so its sole presence doesn't mean that we can test installation of sd-boot. --- test/units/testsuite-74.bootctl.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/units/testsuite-74.bootctl.sh b/test/units/testsuite-74.bootctl.sh index 61373b506e4..4be7bfd0b8f 100755 --- a/test/units/testsuite-74.bootctl.sh +++ b/test/units/testsuite-74.bootctl.sh @@ -13,6 +13,11 @@ if ! command -v bootctl >/dev/null; then exit 0 fi +if [[ ! -d /usr/lib/systemd/boot/efi ]]; then + echo "sd-boot is not installed, skipping." + exit 0 +fi + # shellcheck source=test/units/util.sh . "$(dirname "$0")"/util.sh -- 2.47.3