From: Benjamin Drung Date: Tue, 13 Jan 2026 14:36:22 +0000 (+0100) Subject: test(KERNEL-INSTALL): check kernel-install result X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ec2db8d1858af6ad97cb73a33b6bedb10050ea0;p=thirdparty%2Fdracut-ng.git test(KERNEL-INSTALL): check kernel-install result The kernel-install call should create an `initrd` file that the test will use later in `test_run`. Check that this file has been created to ease debugging in case of a failure. --- diff --git a/test/TEST-43-KERNEL-INSTALL/test.sh b/test/TEST-43-KERNEL-INSTALL/test.sh index d7cd22096..70cbd20c7 100755 --- a/test/TEST-43-KERNEL-INSTALL/test.sh +++ b/test/TEST-43-KERNEL-INSTALL/test.sh @@ -61,6 +61,10 @@ test_setup() { # using kernell-install to invoke dracut mkdir -p "$BOOT_ROOT/$TOKEN/$KVERSION" "$BOOT_ROOT/loader/entries" "$BOOT_ROOT/$TOKEN/0-rescue/loader/entries" kernel-install add "$KVERSION" "$KIMAGE" + if [[ ! -e "$BOOT_ROOT/$TOKEN/$KVERSION"/initrd ]]; then + echo "Error: kernel-install failed to create $BOOT_ROOT/$TOKEN/$KVERSION/initrd" >&2 + return 1 + fi } # shellcheck disable=SC1090