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.
# 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
# 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"
# 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
# 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
# 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."
# 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