From: Franck Bui Date: Tue, 13 Feb 2024 17:16:19 +0000 (+0100) Subject: test: make sure that sd-boot is installed before testing bootctl X-Git-Tag: v256-rc1~859^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26fff16b901c5b7dac203a00fb6ca52cf451361b;p=thirdparty%2Fsystemd.git 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. --- 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