]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
test: add commented DEBUGFAIL for debugging
authorBenjamin Drung <benjamin.drung@canonical.com>
Wed, 4 Feb 2026 12:45:36 +0000 (13:45 +0100)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Wed, 4 Feb 2026 14:18:43 +0000 (09:18 -0500)
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.

test/TEST-10-BASIC/test.sh
test/TEST-12-UEFI/test.sh
test/TEST-13-SYSROOT/test.sh
test/TEST-21-OVERLAYFS/test.sh
test/TEST-43-KERNEL-INSTALL/test.sh
test/TEST-50-NETWORK/test.sh

index 5ca1bb136e12b44b7e8fa97f8d04be4205107310..1247c0e43a5902674957060c4e1581015dad2202 100755 (executable)
@@ -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
index b32d4eb936480dcbc7a3141e79cc5a6cb392411d..81e008d35be65073ae78da42f88ba3e324791bf0 100755 (executable)
@@ -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"
index d6de2809c4ecb477689760e9029211fe43c4def1..d82a16cb1d9a7c5e6467db66352b8915ce4c8a6d 100755 (executable)
@@ -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
index 13c5bfabefbe3447f465e9f75d97800c4e6190c2..47698358d4b898c1d75e27cc77ce36fcd58e8efd 100755 (executable)
@@ -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
index bfcc0342c0fdda8acc7131d755f1949e9a9f38b5..2091dd5c5a1bec1ea3798c19ea2e6044311859be 100755 (executable)
@@ -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."
index f8238da3284c39684a03bbb6707fb52489c8b0c6..565d034d11f55351a61ec54646b8fce34c3df7c6 100755 (executable)
@@ -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