From: Benjamin Drung Date: Wed, 4 Feb 2026 12:45:36 +0000 (+0100) Subject: test: add commented DEBUGFAIL for debugging X-Git-Tag: 110~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bc7b5954305e5df4bd80bcba550f41ca8ba8fcc;p=thirdparty%2Fdracut-ng.git test: add commented DEBUGFAIL for debugging To ease debugging add a commented `DEBUGFAIL` to all test cases. Uncommenting `DEBUGFAIL` will be the first step of debugging in case the logs are not enough. --- diff --git a/test/TEST-10-BASIC/test.sh b/test/TEST-10-BASIC/test.sh index 5ca1bb136..1247c0e43 100755 --- a/test/TEST-10-BASIC/test.sh +++ b/test/TEST-10-BASIC/test.sh @@ -3,6 +3,9 @@ set -eu # shellcheck disable=SC2034 TEST_DESCRIPTION="root filesystem on ext4 filesystem" +# Uncomment this to debug failures +#DEBUGFAIL="rd.debug rd.shell" + test_run() { declare -a disk_args=() qemu_add_drive disk_args "$TESTDIR"/root.img root diff --git a/test/TEST-12-UEFI/test.sh b/test/TEST-12-UEFI/test.sh index b32d4eb93..81e008d35 100755 --- a/test/TEST-12-UEFI/test.sh +++ b/test/TEST-12-UEFI/test.sh @@ -4,6 +4,9 @@ set -eu # shellcheck disable=SC2034 TEST_DESCRIPTION="UEFI boot (ukify, kernel-install)" +# Uncomment this to debug failures +#DEBUGFAIL="rd.debug rd.shell" + test_check() { if ! type -p mksquashfs &> /dev/null; then echo "Test needs mksquashfs... Skipping" diff --git a/test/TEST-13-SYSROOT/test.sh b/test/TEST-13-SYSROOT/test.sh index d6de2809c..d82a16cb1 100755 --- a/test/TEST-13-SYSROOT/test.sh +++ b/test/TEST-13-SYSROOT/test.sh @@ -3,6 +3,9 @@ set -eu # shellcheck disable=SC2034 TEST_DESCRIPTION="initramfs created from sysroot" +# Uncomment this to debug failures +#DEBUGFAIL="rd.debug rd.shell" + test_run() { declare -a disk_args=() qemu_add_drive disk_args "$TESTDIR"/root.img root diff --git a/test/TEST-21-OVERLAYFS/test.sh b/test/TEST-21-OVERLAYFS/test.sh index 13c5bfabe..47698358d 100755 --- a/test/TEST-21-OVERLAYFS/test.sh +++ b/test/TEST-21-OVERLAYFS/test.sh @@ -3,6 +3,9 @@ set -eu # shellcheck disable=SC2034 TEST_DESCRIPTION="Test overlayfs module with persistent device overlay" +# Uncomment this to debug failures +#DEBUGFAIL="rd.debug rd.shell" + client_run() { local test_name="$1" shift diff --git a/test/TEST-43-KERNEL-INSTALL/test.sh b/test/TEST-43-KERNEL-INSTALL/test.sh index bfcc0342c..2091dd5c5 100755 --- a/test/TEST-43-KERNEL-INSTALL/test.sh +++ b/test/TEST-43-KERNEL-INSTALL/test.sh @@ -3,6 +3,9 @@ set -eu # shellcheck disable=SC2034 TEST_DESCRIPTION="kernel-install with root filesystem on ext4 filesystem" +# Uncomment this to debug failures +#DEBUGFAIL="rd.debug rd.shell" + test_check() { if ! command -v kernel-install > /dev/null; then echo "This test needs kernel-install to run." diff --git a/test/TEST-50-NETWORK/test.sh b/test/TEST-50-NETWORK/test.sh index f8238da32..565d034d1 100755 --- a/test/TEST-50-NETWORK/test.sh +++ b/test/TEST-50-NETWORK/test.sh @@ -6,6 +6,9 @@ set -e # shellcheck disable=SC2034 TEST_DESCRIPTION="bring up network without netroot set with $USE_NETWORK" +# Uncomment this to debug failures +#DEBUGFAIL="rd.debug rd.shell" + test_run() { declare -a disk_args=() qemu_add_drive disk_args "$TESTDIR"/root.img root