]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-08-INITRD: Fix result check
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 15 May 2024 10:32:57 +0000 (12:32 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 15 May 2024 11:30:10 +0000 (13:30 +0200)
test/TEST-08-INITRD/test.sh
test/units/TEST-08-INITRD.sh

index cbbe82080f15d453c876d3cfc99487868f182919..73f743cee6b1d8dd229d694e877c584884a90f06 100755 (executable)
@@ -65,13 +65,13 @@ check_result_qemu_hook() {
     # [    6.245955] systemd-shutdown[1]: Failed to switch root to "/run/initramfs": Invalid argument
     if grep -qE "systemd-shutdown.+: Failed to move /run/initramfs" "$console_log" ||
        grep -qE "systemd-shutdown.+: Failed to switch root" "$console_log"; then
-        derror "sd-shutdown failed to switch root in shutdown initrd"
+        derror "sd-shutdown failed to switch root in exitrd"
         return 1
     fi
 
-    # Check if the shutdown initrd was executed at all
-    if ! grep -q "Hello from shutdown initrd" "$console_log"; then
-        derror "Missing 'hello' message from shutdown initrd"
+    # Check if the exitrd was executed at all
+    if ! grep -q "Hello from exitrd" "$console_log"; then
+        derror "Missing 'hello' message from exitrd"
         return 1
     fi
 
index 2f9ec7a2bccae9369f6e80d6158b7019d65cacdf..48045272f8749def679f4ef2e575e75f4f6076e3 100755 (executable)
@@ -22,7 +22,7 @@ test -d /run/initrd-mount-target
 mountpoint /run/initrd-mount-target
 [[ -e /run/initrd-mount-target/hello-world ]]
 
-# Copy the prepared shutdown initrd to its intended location. Check the respective
+# Copy the prepared exitrd to its intended location. Check the respective
 # test.sh file for details
 mkdir -p /run/initramfs
 cp -r /exitrd/* /run/initramfs/