]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
test: drop duplicate check for -daemonize
authorBenjamin Drung <benjamin.drung@canonical.com>
Tue, 13 Jan 2026 18:29:54 +0000 (19:29 +0100)
committerLaszlo <laszlo.gombos@gmail.com>
Wed, 14 Jan 2026 00:55:54 +0000 (19:55 -0500)
`run-qemu` checks twice for the `-daemonize` parameter.

Fixes: a3f73298f287 ("testsuite: refactor qemu options")
test/run-qemu

index 3058e6f4bc48430dc62a204304d7e8b3b30b13c4..5904bc93f70354a370f3694dc8a783ba19606924 100755 (executable)
@@ -174,7 +174,7 @@ fi
 # Provide rng device sourcing the hosts /dev/urandom and other standard parameters
 ARGS+=(-smp 2 -m "${MEMORY-1024}" -nodefaults -vga none -display none -no-reboot -watchdog-action poweroff -device "${rng_device:-virtio-rng-pci}")
 
-if ! [[ $* == *-daemonize* ]] && ! [[ $* == *-daemonize* ]]; then
+if ! [[ $* == *-daemonize* ]]; then
     ARGS+=(-serial stdio)
 fi