]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
ci: restore regression for console messages
authorJo Zzsi <jozzsicsataban@gmail.com>
Fri, 24 Jan 2025 00:37:53 +0000 (19:37 -0500)
committerLaszlo <laszlo.gombos@gmail.com>
Fri, 24 Jan 2025 02:54:38 +0000 (21:54 -0500)
BASIC, UEFI, DMSQUASH tests did not had some of the
kernel command line options properly set

test/TEST-10-BASIC/test.sh
test/TEST-12-UEFI/test.sh
test/TEST-30-DMSQUASH/test.sh
test/test-functions

index 2979348df79fd817bd10d568c6041e9be2ef6a76..63a0de738cbc743c54e60dcce1a6b00225748079 100755 (executable)
@@ -12,6 +12,7 @@ test_run() {
 
     "$testdir"/run-qemu \
         "${disk_args[@]}" \
+        -append "$TEST_KERNEL_CMDLINE root=LABEL=dracut" \
         -initrd "$TESTDIR"/initramfs.testing || return 1
 
     test_marker_check || return 1
@@ -28,7 +29,6 @@ test_setup() {
 
     test_dracut \
         --omit systemd \
-        --kernel-cmdline "$TEST_KERNEL_CMDLINE root=LABEL=dracut" \
         "$TESTDIR"/initramfs.testing
 }
 
index b57790e1d0554d2d0821680ef197e5eabaac8e6b..2b6edf53d409fd94a70bc96581311fc231042210 100755 (executable)
@@ -64,12 +64,12 @@ test_setup() {
         ukify build \
             --linux="$VMLINUZ" \
             --initrd="$TESTDIR"/initramfs.testing \
-            --cmdline='root=/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_root' \
+            --cmdline="$TEST_KERNEL_CMDLINE root=/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_root" \
             --output="$TESTDIR"/ESP/EFI/BOOT/BOOTX64.efi
     else
         echo "Using dracut to create UKI"
         test_dracut \
-            --kernel-cmdline 'root=/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_root' \
+            --kernel-cmdline "$TEST_KERNEL_CMDLINE root=/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_root" \
             --drivers 'squashfs' \
             --uefi \
             "$TESTDIR"/ESP/EFI/BOOT/BOOTX64.efi
index b688435b2463a33a72050ab4e93eeeb8ed320fc6..7655977ab40e14a7c50f7e9dc6c510c16002a898 100755 (executable)
@@ -30,7 +30,7 @@ client_run() {
     test_marker_reset
     "$testdir"/run-qemu \
         "${disk_args[@]}" \
-        -append "$client_opts" \
+        -append "$TEST_KERNEL_CMDLINE rd.live.overlay.overlayfs=1 root=live:/dev/disk/by-label/dracut $client_opts" \
         -initrd "$TESTDIR"/initramfs.testing
 
     if ! test_marker_check; then
@@ -129,7 +129,6 @@ EOF
     test_dracut \
         --no-hostonly \
         --modules "dmsquash-live-autooverlay" \
-        --kernel-cmdline "$TEST_KERNEL_CMDLINE rd.live.overlay.overlayfs=1 root=live:/dev/disk/by-label/dracut" \
         "$TESTDIR"/initramfs.testing
 }
 
index 16b8acb3bc6934e742cce943c23f3ddac11676bd..818528edcbc27a4e85d6e388279ecdae70ff03ad 100644 (file)
@@ -18,7 +18,7 @@ if [[ -z $basedir ]]; then basedir="$(realpath ../..)"; fi
 DRACUT=${DRACUT-dracut}
 PKGLIBDIR=${PKGLIBDIR-$basedir}
 
-TEST_KERNEL_CMDLINE+=" rd.retry=10 rd.timeout=30 rd.info rd.shell=0 panic=1 oops=panic softlockup_panic=1 systemd.crash_reboot console=ttyS0,115200n81 $DEBUGFAIL "
+TEST_KERNEL_CMDLINE+=" rd.retry=10 rd.timeout=30 rd.info rd.shell=0 panic=1 oops=panic softlockup_panic=1 systemd.crash_reboot console=ttyS0 $DEBUGFAIL "
 if [[ $V != "1" && $V != "2" ]]; then
     TEST_KERNEL_CMDLINE+="quiet "
 fi