]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
test: set rd.timeout for the test runs
authorJo Zzsi <jozzsicsataban@gmail.com>
Tue, 29 Oct 2024 00:02:00 +0000 (20:02 -0400)
committerLaszlo <laszlo.gombos@gmail.com>
Tue, 29 Oct 2024 01:22:31 +0000 (21:22 -0400)
The goal is to make sure test do not get stuck forever and instead
they timeout (and fail).

test/test-functions

index 40f8d6a591e3e28da30537ae5300ca5127132fb4..fdb916f05abed55643fc5952818325ada305f8e2 100644 (file)
@@ -21,7 +21,7 @@ if [[ -z $basedir ]]; then basedir="$(realpath ../..)"; fi
 DRACUT=${DRACUT-${basedir}/dracut.sh}
 PKGLIBDIR=${PKGLIBDIR-$basedir}
 
-TEST_KERNEL_CMDLINE+=" rd.retry=10 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,115200n81 $DEBUGFAIL "
 if [[ $V != "1" && $V != "2" ]]; then
     TEST_KERNEL_CMDLINE+="quiet "
 fi