]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
integration test: pass 'noresume' to qemu
authorLuca Boccassi <bluca@debian.org>
Thu, 18 May 2023 12:08:56 +0000 (13:08 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 18 May 2023 15:45:55 +0000 (16:45 +0100)
When running on Debian/Ubuntu, I get a minute delay or so on every boot
because the local initramfs tries to resume from hibernation. This is
not really useful here, so always skip it

test/test-functions

index 1bf9f2d54f89d38f7a15ee75a504e5c51dfbd4cd..b875e6413e51967fb8d112ea416ac022c8bbc985 100644 (file)
@@ -475,6 +475,8 @@ run_qemu() {
         kernel_params+=("rd.hostonly=0")
     fi
 
+    # Debian/Ubuntu's initramfs tries to check if it can resume from hibernation
+    # and wastes a minute or so probing disks, skip that as it's not useful here
     kernel_params+=(
         "root=LABEL=systemd_boot"
         "rw"
@@ -486,6 +488,7 @@ run_qemu() {
         "SYSTEMD_UNIT_PATH=/usr/lib/systemd/tests/testdata/testsuite-$1.units:/usr/lib/systemd/tests/testdata/units:"
         "systemd.unit=testsuite.target"
         "systemd.wants=testsuite-$1.service"
+        "noresume"
     )
 
     if ! get_bool "$INTERACTIVE_DEBUG"; then