]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
test: support DEBUGFAIL being unset
authorBenjamin Drung <benjamin.drung@canonical.com>
Fri, 13 Jun 2025 10:22:04 +0000 (12:22 +0200)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Sun, 15 Jun 2025 05:42:36 +0000 (01:42 -0400)
Support `DEBUGFAIL` being unset when using `set -u`.

test/test-functions

index 066e47cda13e98e175b287959302eed5e5f5c49b..2a4c1eca2dbbc7cda01691b58480ae22fd82f0b4 100644 (file)
@@ -21,7 +21,7 @@ if [[ -f /etc/machine-id ]]; then
 fi
 [ -z "$TOKEN" ] && . /etc/os-release && TOKEN="$ID"
 
-TEST_KERNEL_CMDLINE+=" root=LABEL=dracut panic=1 oops=panic softlockup_panic=1 systemd.crash_reboot $DEBUGFAIL "
+TEST_KERNEL_CMDLINE+=" root=LABEL=dracut panic=1 oops=panic softlockup_panic=1 systemd.crash_reboot ${DEBUGFAIL-} "
 
 if [[ ${V-} != "1" && ${V-} != "2" ]]; then
     TEST_KERNEL_CMDLINE+="quiet "