Blame SOURCES/0474-testsuite-guard-against-kernel-panic.patch

ace748
From 904c466cdb424a10c68cc97d8974754acd04dad9 Mon Sep 17 00:00:00 2001
ace748
From: Harald Hoyer <harald@redhat.com>
ace748
Date: Fri, 11 Nov 2016 13:45:24 +0100
ace748
Subject: [PATCH] testsuite: guard against kernel panic
ace748
ace748
call qemu with --no-reboot and append "panic=1" to the kernel cmdline
ace748
---
ace748
 test/TEST-01-BASIC/test.sh                 | 3 ++-
ace748
 test/TEST-02-SYSTEMD/test.sh               | 3 ++-
ace748
 test/TEST-03-USR-MOUNT/test.sh             | 3 ++-
ace748
 test/TEST-04-FULL-SYSTEMD/test.sh          | 3 ++-
ace748
 test/TEST-10-RAID/test.sh                  | 3 ++-
ace748
 test/TEST-11-LVM/test.sh                   | 3 ++-
ace748
 test/TEST-12-RAID-DEG/test.sh              | 3 ++-
ace748
 test/TEST-13-ENC-RAID-LVM/test.sh          | 9 ++++++---
ace748
 test/TEST-14-IMSM/test.sh                  | 3 ++-
ace748
 test/TEST-15-BTRFSRAID/test.sh             | 3 ++-
ace748
 test/TEST-16-DMSQUASH/test.sh              | 3 ++-
ace748
 test/TEST-17-LVM-THIN/test.sh              | 3 ++-
ace748
 test/TEST-20-NFS/test.sh                   | 6 ++++--
ace748
 test/TEST-30-ISCSI/test.sh                 | 6 ++++--
ace748
 test/TEST-40-NBD/test.sh                   | 6 ++++--
ace748
 test/TEST-50-MULTINIC/test.sh              | 6 ++++--
ace748
 test/TEST-60-MTUMAC/test.sh                | 6 ++++--
ace748
 test/TEST-70-BONDBRIDGETEAMVLAN/dhcpd.conf | 2 +-
ace748
 test/TEST-70-BONDBRIDGETEAMVLAN/test.sh    | 6 ++++--
ace748
 19 files changed, 53 insertions(+), 27 deletions(-)
ace748
ace748
diff --git a/test/TEST-01-BASIC/test.sh b/test/TEST-01-BASIC/test.sh
1755ca
index 97e8017e..6b79dee9 100755
ace748
--- a/test/TEST-01-BASIC/test.sh
ace748
+++ b/test/TEST-01-BASIC/test.sh
ace748
@@ -14,7 +14,8 @@ test_run() {
ace748
 	-m 256M -smp 2 -nographic \
ace748
 	-net none -kernel /boot/vmlinuz-$KVERSION \
ace748
 	-watchdog i6300esb -watchdog-action poweroff \
ace748
-	-append "root=LABEL=dracut rw systemd.log_level=debug systemd.log_target=console rd.retry=3 rd.debug console=ttyS0,115200n81 $DEBUGFAIL" \
ace748
+        -no-reboot \
ace748
+	-append "panic=1 root=LABEL=dracut rw systemd.log_level=debug systemd.log_target=console rd.retry=3 rd.debug console=ttyS0,115200n81 $DEBUGFAIL" \
ace748
 	-initrd $TESTDIR/initramfs.testing || return 1
ace748
     grep -F -m 1 -q dracut-root-block-success $TESTDIR/result || return 1
ace748
 }
ace748
diff --git a/test/TEST-02-SYSTEMD/test.sh b/test/TEST-02-SYSTEMD/test.sh
1755ca
index 2a077b04..23591804 100755
ace748
--- a/test/TEST-02-SYSTEMD/test.sh
ace748
+++ b/test/TEST-02-SYSTEMD/test.sh
ace748
@@ -13,7 +13,8 @@ test_run() {
ace748
 	-hdb $TESTDIR/marker.disk \
ace748
 	-m 256M -smp 2 -nographic \
ace748
 	-net none -kernel /boot/vmlinuz-$KVERSION \
ace748
-	-append "root=LABEL=dracut rw loglevel=77 rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 init=/sbin/init $DEBUGFAIL" \
ace748
+        -no-reboot \
ace748
+	-append "panic=1 root=LABEL=dracut rw loglevel=77 rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 init=/sbin/init $DEBUGFAIL" \
ace748
 	-initrd $TESTDIR/initramfs.testing
ace748
     grep -F -m 1 -q dracut-root-block-success $TESTDIR/marker.disk || return 1
ace748
 }
ace748
diff --git a/test/TEST-03-USR-MOUNT/test.sh b/test/TEST-03-USR-MOUNT/test.sh
1755ca
index c3f810ab..cd6f2826 100755
ace748
--- a/test/TEST-03-USR-MOUNT/test.sh
ace748
+++ b/test/TEST-03-USR-MOUNT/test.sh
ace748
@@ -20,7 +20,8 @@ client_run() {
ace748
 	-hdc $TESTDIR/result \
ace748
 	-m 256M -smp 2 -nographic \
ace748
 	-net none -kernel /boot/vmlinuz-$KVERSION \
ace748
-	-append "root=LABEL=dracut $client_opts rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 $DEBUGFAIL" \
ace748
+        -no-reboot \
ace748
+	-append "panic=1 root=LABEL=dracut $client_opts rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 $DEBUGFAIL" \
ace748
 	-initrd $TESTDIR/initramfs.testing
ace748
 
ace748
     if (($? != 0)); then
ace748
diff --git a/test/TEST-04-FULL-SYSTEMD/test.sh b/test/TEST-04-FULL-SYSTEMD/test.sh
1755ca
index 1adb34e9..13ab37b4 100755
ace748
--- a/test/TEST-04-FULL-SYSTEMD/test.sh
ace748
+++ b/test/TEST-04-FULL-SYSTEMD/test.sh
ace748
@@ -22,7 +22,8 @@ client_run() {
ace748
 	-hdc $TESTDIR/result \
ace748
 	-m 256M -smp 2 -nographic \
ace748
 	-net none \
ace748
-	-append "$client_opts rd.device.timeout=20 rd.retry=3 console=ttyS0,115200n81 selinux=0 $DEBUGOUT $DEBUGFAIL" \
ace748
+        -no-reboot \
ace748
+	-append "panic=1 $client_opts rd.device.timeout=20 rd.retry=3 console=ttyS0,115200n81 selinux=0 $DEBUGOUT $DEBUGFAIL" \
ace748
 	-initrd $TESTDIR/initramfs.testing
ace748
 
ace748
     if (($? != 0)); then
ace748
diff --git a/test/TEST-10-RAID/test.sh b/test/TEST-10-RAID/test.sh
1755ca
index 7f99c0e0..364f7d51 100755
ace748
--- a/test/TEST-10-RAID/test.sh
ace748
+++ b/test/TEST-10-RAID/test.sh
ace748
@@ -12,7 +12,8 @@ test_run() {
ace748
 	-hda $DISKIMAGE \
ace748
 	-m 256M -smp 2 -nographic \
ace748
 	-net none -kernel /boot/vmlinuz-$KVERSION \
ace748
-	-append "root=/dev/dracut/root rd.auto rw rd.retry=10 console=ttyS0,115200n81 selinux=0 $DEBUGFAIL" \
ace748
+        -no-reboot \
ace748
+	-append "panic=1 root=/dev/dracut/root rd.auto rw rd.retry=10 console=ttyS0,115200n81 selinux=0 $DEBUGFAIL" \
ace748
 	-initrd $TESTDIR/initramfs.testing
ace748
     grep -F -m 1 -q dracut-root-block-success $DISKIMAGE || return 1
ace748
 }
ace748
diff --git a/test/TEST-11-LVM/test.sh b/test/TEST-11-LVM/test.sh
1755ca
index a4ee86da..fb009461 100755
ace748
--- a/test/TEST-11-LVM/test.sh
ace748
+++ b/test/TEST-11-LVM/test.sh
ace748
@@ -11,7 +11,8 @@ test_run() {
ace748
 	-hda $TESTDIR/root.ext2 \
ace748
 	-m 256M -smp 2 -nographic \
ace748
 	-net none -kernel /boot/vmlinuz-$KVERSION \
ace748
-	-append "root=/dev/dracut/root rw rd.auto=1 quiet rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 rd.debug  $DEBUGFAIL" \
ace748
+        -no-reboot \
ace748
+	-append "panic=1 root=/dev/dracut/root rw rd.auto=1 quiet rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 rd.debug  $DEBUGFAIL" \
ace748
 	-initrd $TESTDIR/initramfs.testing
ace748
     grep -F -m 1 -q dracut-root-block-success $TESTDIR/root.ext2 || return 1
ace748
 }
ace748
diff --git a/test/TEST-12-RAID-DEG/test.sh b/test/TEST-12-RAID-DEG/test.sh
1755ca
index aae5e8b4..d4cb9d00 100755
ace748
--- a/test/TEST-12-RAID-DEG/test.sh
ace748
+++ b/test/TEST-12-RAID-DEG/test.sh
ace748
@@ -19,7 +19,8 @@ client_run() {
ace748
 	-hdc $TESTDIR/disk2.img.new \
ace748
 	-hdd $TESTDIR/disk3.img.new \
ace748
 	-net none -kernel /boot/vmlinuz-$KVERSION \
ace748
-	-append "$* root=LABEL=root rw rd.retry=20 rd.info console=ttyS0,115200n81 selinux=0 rd.debug $DEBUGFAIL " \
ace748
+        -no-reboot \
ace748
+	-append "panic=1 $* root=LABEL=root rw rd.retry=20 rd.info console=ttyS0,115200n81 selinux=0 rd.debug $DEBUGFAIL " \
ace748
 	-initrd $TESTDIR/initramfs.testing
ace748
     if ! grep -F -m 1 -q dracut-root-block-success $TESTDIR/root.ext2; then
ace748
 	echo "CLIENT TEST END: $@ [FAIL]"
ace748
diff --git a/test/TEST-13-ENC-RAID-LVM/test.sh b/test/TEST-13-ENC-RAID-LVM/test.sh
1755ca
index 8194166b..196dd3b6 100755
ace748
--- a/test/TEST-13-ENC-RAID-LVM/test.sh
ace748
+++ b/test/TEST-13-ENC-RAID-LVM/test.sh
ace748
@@ -19,7 +19,8 @@ test_run() {
ace748
 	-hdb $TESTDIR/check-success.img \
ace748
 	-m 256M -smp 2 -nographic \
ace748
 	-net none -kernel /boot/vmlinuz-$KVERSION \
ace748
-	-append "root=/dev/dracut/root rw rd.auto rd.retry=20 console=ttyS0,115200n81 selinux=0 $LUKSARGS rd.device.timeout=40 $DEBUGFAIL" \
ace748
+        -no-reboot \
ace748
+	-append "panic=1 root=/dev/dracut/root rw rd.auto rd.retry=20 console=ttyS0,115200n81 selinux=0 $LUKSARGS rd.device.timeout=40 $DEBUGFAIL" \
ace748
 	-initrd $TESTDIR/initramfs.testing
ace748
     grep -F -m 1 -q dracut-root-block-success $TESTDIR/check-success.img || return 1
ace748
     echo "CLIENT TEST END: [OK]"
ace748
@@ -32,7 +33,8 @@ test_run() {
ace748
 	-hdb $TESTDIR/check-success.img \
ace748
 	-m 256M -smp 2 -nographic \
ace748
 	-net none -kernel /boot/vmlinuz-$KVERSION \
ace748
-	-append "root=/dev/dracut/root rw quiet rd.auto rd.retry=20 rd.info console=ttyS0,115200n81 selinux=0 rd.device.timeout=40 $DEBUGFAIL" \
ace748
+        -no-reboot \
ace748
+	-append "panic=1 root=/dev/dracut/root rw quiet rd.auto rd.retry=20 rd.info console=ttyS0,115200n81 selinux=0 rd.device.timeout=40 $DEBUGFAIL" \
ace748
 	-initrd $TESTDIR/initramfs.testing
ace748
     grep -F -m 1 -q dracut-root-block-success $TESTDIR/check-success.img || return 1
ace748
     echo "CLIENT TEST END: [OK]"
ace748
@@ -45,7 +47,8 @@ test_run() {
ace748
 	-hdb $TESTDIR/check-success.img \
ace748
 	-m 256M -smp 2 -nographic \
ace748
 	-net none -kernel /boot/vmlinuz-$KVERSION \
ace748
-	-append "root=/dev/dracut/root rw quiet rd.auto rd.retry=10 rd.info console=ttyS0,115200n81 selinux=0 rd.debug rd.luks.uuid=failme rd.device.timeout=40 $DEBUGFAIL" \
ace748
+        -no-reboot \
ace748
+	-append "panic=1 root=/dev/dracut/root rw quiet rd.auto rd.retry=10 rd.info console=ttyS0,115200n81 selinux=0 rd.debug rd.luks.uuid=failme rd.device.timeout=40 $DEBUGFAIL" \
ace748
 	-initrd $TESTDIR/initramfs.testing
ace748
     grep -F -m 1 -q dracut-root-block-success $TESTDIR/check-success.img && return 1
ace748
     echo "CLIENT TEST END: [OK]"
ace748
diff --git a/test/TEST-14-IMSM/test.sh b/test/TEST-14-IMSM/test.sh
1755ca
index 783ec4a5..4e5d665f 100755
ace748
--- a/test/TEST-14-IMSM/test.sh
ace748
+++ b/test/TEST-14-IMSM/test.sh
ace748
@@ -15,7 +15,8 @@ client_run() {
ace748
 	-hdc $TESTDIR/disk2 \
ace748
 	-m 256M -nographic \
ace748
 	-net none -kernel /boot/vmlinuz-$KVERSION \
ace748
-	-append "$* root=LABEL=root rw debug rd.retry=20 rd.debug console=ttyS0,115200n81 selinux=0 rd.info $DEBUGFAIL" \
ace748
+        -no-reboot \
ace748
+	-append "panic=1 $* root=LABEL=root rw debug rd.retry=20 rd.debug console=ttyS0,115200n81 selinux=0 rd.info $DEBUGFAIL" \
ace748
 	-initrd $TESTDIR/initramfs.testing
ace748
     if ! grep -F -m 1 -q dracut-root-block-success $TESTDIR/root.ext2; then
ace748
 	echo "CLIENT TEST END: $@ [FAIL]"
ace748
diff --git a/test/TEST-15-BTRFSRAID/test.sh b/test/TEST-15-BTRFSRAID/test.sh
1755ca
index 1e3e18c1..51ffd966 100755
ace748
--- a/test/TEST-15-BTRFSRAID/test.sh
ace748
+++ b/test/TEST-15-BTRFSRAID/test.sh
ace748
@@ -11,7 +11,8 @@ test_run() {
ace748
 	-hda $DISKIMAGE \
ace748
 	-m 256M  -smp 2 -nographic \
ace748
 	-net none -kernel /boot/vmlinuz-$KVERSION \
ace748
-	-append "root=LABEL=root rw rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 $DEBUGFAIL" \
ace748
+        -no-reboot \
ace748
+	-append "panic=1 root=LABEL=root rw rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 $DEBUGFAIL" \
ace748
 	-initrd $TESTDIR/initramfs.testing
ace748
     dd if=$DISKIMAGE bs=512 count=2 | grep -F -m 1 -q dracut-root-block-success $DISKIMAGE || return 1
ace748
 }
ace748
diff --git a/test/TEST-16-DMSQUASH/test.sh b/test/TEST-16-DMSQUASH/test.sh
1755ca
index 6daa35e7..3b4600e1 100755
ace748
--- a/test/TEST-16-DMSQUASH/test.sh
ace748
+++ b/test/TEST-16-DMSQUASH/test.sh
ace748
@@ -21,7 +21,8 @@ test_run() {
ace748
 	-hda "$TESTDIR"/root.img \
ace748
 	-m 256M -smp 2 -nographic \
ace748
 	-net none -kernel /boot/vmlinuz-"$KVERSION" \
ace748
-	-append "root=live:CDLABEL=LiveCD live rw quiet rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 rd.debug $DEBUGFAIL" \
ace748
+        -no-reboot \
ace748
+	-append "panic=1 root=live:CDLABEL=LiveCD live rw quiet rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 rd.debug $DEBUGFAIL" \
ace748
 	-initrd "$TESTDIR"/initramfs.testing
ace748
     grep -F -m 1 -q dracut-root-block-success -- "$TESTDIR"/root.img || return 1
ace748
 }
ace748
diff --git a/test/TEST-17-LVM-THIN/test.sh b/test/TEST-17-LVM-THIN/test.sh
1755ca
index f15e1a3d..9a9ed6f3 100755
ace748
--- a/test/TEST-17-LVM-THIN/test.sh
ace748
+++ b/test/TEST-17-LVM-THIN/test.sh
ace748
@@ -11,7 +11,8 @@ test_run() {
ace748
 	-hda $TESTDIR/root.ext2 \
ace748
 	-m 256M -smp 2 -nographic \
ace748
 	-net none -kernel /boot/vmlinuz-$KVERSION \
ace748
-	-append "root=/dev/dracut/root rw rd.auto=1 quiet rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 rd.debug  $DEBUGFAIL" \
ace748
+        -no-reboot \
ace748
+	-append "panic=1 root=/dev/dracut/root rw rd.auto=1 quiet rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 rd.debug  $DEBUGFAIL" \
ace748
 	-initrd $TESTDIR/initramfs.testing
ace748
     grep -F -m 1 -q dracut-root-block-success $TESTDIR/root.ext2 || return 1
ace748
 }
ace748
diff --git a/test/TEST-20-NFS/test.sh b/test/TEST-20-NFS/test.sh
1755ca
index 64fc5501..9e02a18d 100755
ace748
--- a/test/TEST-20-NFS/test.sh
ace748
+++ b/test/TEST-20-NFS/test.sh
ace748
@@ -23,7 +23,8 @@ run_server() {
ace748
         -serial ${SERIAL:-null} \
ace748
         -watchdog i6300esb -watchdog-action poweroff \
ace748
         -kernel /boot/vmlinuz-$KVERSION \
ace748
-        -append "rd.debug loglevel=77 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0" \
ace748
+        -no-reboot \
ace748
+        -append "panic=1 rd.debug loglevel=77 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0" \
ace748
         -initrd $TESTDIR/initramfs.server \
ace748
         -pidfile $TESTDIR/server.pid -daemonize || return 1
ace748
     chmod 644 $TESTDIR/server.pid || return 1
ace748
@@ -58,7 +59,8 @@ client_test() {
ace748
         -net socket,connect=127.0.0.1:12320 \
ace748
         -kernel /boot/vmlinuz-$KVERSION \
ace748
         -watchdog i6300esb -watchdog-action poweroff \
ace748
-        -append "$cmdline $DEBUGFAIL rd.debug rd.retry=10 rd.info quiet  ro console=ttyS0,115200n81 selinux=0" \
ace748
+        -no-reboot \
ace748
+        -append "panic=1 $cmdline $DEBUGFAIL rd.debug rd.retry=10 rd.info quiet  ro console=ttyS0,115200n81 selinux=0" \
ace748
         -initrd $TESTDIR/initramfs.testing
ace748
 
ace748
     if [[ $? -ne 0 ]] || ! grep -F -m 1 -q nfs-OK $TESTDIR/client.img; then
ace748
diff --git a/test/TEST-30-ISCSI/test.sh b/test/TEST-30-ISCSI/test.sh
1755ca
index a610b0e4..a82a9508 100755
ace748
--- a/test/TEST-30-ISCSI/test.sh
ace748
+++ b/test/TEST-30-ISCSI/test.sh
ace748
@@ -25,7 +25,8 @@ run_server() {
ace748
         -net nic,macaddr=52:54:00:12:34:56,model=e1000 \
ace748
         -net nic,macaddr=52:54:00:12:34:57,model=e1000 \
ace748
         -net socket,listen=127.0.0.1:12330 \
ace748
-        -append "root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0 $SERVER_DEBUG" \
ace748
+        -no-reboot \
ace748
+        -append "panic=1 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0 $SERVER_DEBUG" \
ace748
         -initrd $TESTDIR/initramfs.server \
ace748
         -pidfile $TESTDIR/server.pid -daemonize || return 1
ace748
     chmod 644 $TESTDIR/server.pid || return 1
ace748
@@ -49,7 +50,8 @@ run_client() {
ace748
         -net nic,macaddr=52:54:00:12:34:00,model=e1000 \
ace748
         -net nic,macaddr=52:54:00:12:34:01,model=e1000 \
ace748
         -net socket,connect=127.0.0.1:12330 \
ace748
-        -append "rw rd.auto rd.device.timeout=300 rd.retry=50 console=ttyS0,115200n81 selinux=0 rd.debug=0 $DEBUGFAIL $*" \
ace748
+        -no-reboot \
ace748
+        -append "panic=1 rw rd.auto rd.device.timeout=300 rd.retry=50 console=ttyS0,115200n81 selinux=0 rd.debug=0 $DEBUGFAIL $*" \
ace748
         -initrd $TESTDIR/initramfs.testing
ace748
     if ! grep -F -m 1 -q iscsi-OK $TESTDIR/client.img; then
ace748
 	echo "CLIENT TEST END: $test_name [FAILED - BAD EXIT]"
ace748
diff --git a/test/TEST-40-NBD/test.sh b/test/TEST-40-NBD/test.sh
1755ca
index 73123c22..a781ef0c 100755
ace748
--- a/test/TEST-40-NBD/test.sh
ace748
+++ b/test/TEST-40-NBD/test.sh
ace748
@@ -24,7 +24,8 @@ run_server() {
ace748
         -net socket,listen=127.0.0.1:12340 \
ace748
         -serial $SERIAL \
ace748
         -kernel /boot/vmlinuz-$KVERSION \
ace748
-        -append "root=/dev/sda rootfstype=ext2 rw quiet console=ttyS0,115200n81 selinux=0" \
ace748
+        -no-reboot \
ace748
+        -append "panic=1 root=/dev/sda rootfstype=ext2 rw quiet console=ttyS0,115200n81 selinux=0" \
ace748
         -initrd $TESTDIR/initramfs.server -pidfile $TESTDIR/server.pid -daemonize || return 1
ace748
     chmod 644 $TESTDIR/server.pid || return 1
ace748
 
ace748
@@ -61,7 +62,8 @@ client_test() {
ace748
         -net nic,macaddr=$mac,model=e1000 \
ace748
         -net socket,connect=127.0.0.1:12340 \
ace748
         -kernel /boot/vmlinuz-$KVERSION \
ace748
-        -append "$cmdline $DEBUGFAIL rd.auto rd.info rd.retry=10 ro console=ttyS0,115200n81  selinux=0  " \
ace748
+        -no-reboot \
ace748
+        -append "panic=1 $cmdline $DEBUGFAIL rd.auto rd.info rd.retry=10 ro console=ttyS0,115200n81  selinux=0  " \
ace748
         -initrd $TESTDIR/initramfs.testing
ace748
 
ace748
     if [[ $? -ne 0 ]] || ! grep -F -m 1 -q nbd-OK $TESTDIR/flag.img; then
ace748
diff --git a/test/TEST-50-MULTINIC/test.sh b/test/TEST-50-MULTINIC/test.sh
1755ca
index 642a7486..627b8ca7 100755
ace748
--- a/test/TEST-50-MULTINIC/test.sh
ace748
+++ b/test/TEST-50-MULTINIC/test.sh
ace748
@@ -23,7 +23,8 @@ run_server() {
ace748
         ${SERIAL:+-serial "$SERIAL"} \
ace748
         -watchdog i6300esb -watchdog-action poweroff \
ace748
         -kernel /boot/vmlinuz-"$KVERSION" \
ace748
-        -append "loglevel=7 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0" \
ace748
+        -no-reboot \
ace748
+        -append "panic=1 loglevel=7 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0" \
ace748
         -initrd "$TESTDIR"/initramfs.server \
ace748
         -pidfile "$TESTDIR"/server.pid -daemonize || return 1
ace748
     chmod 644 -- "$TESTDIR"/server.pid || return 1
ace748
@@ -58,7 +59,8 @@ client_test() {
ace748
         -net nic,macaddr=52:54:00:12:34:$mac3,model=e1000 \
ace748
         -watchdog i6300esb -watchdog-action poweroff \
ace748
         -kernel /boot/vmlinuz-"$KVERSION" \
ace748
-        -append "$cmdline $DEBUGFAIL rd.retry=5 rw console=ttyS0,115200n81 selinux=0 init=/sbin/init rd.debug systemd.log_target=console loglevel=7" \
ace748
+        -no-reboot \
ace748
+        -append "panic=1 $cmdline $DEBUGFAIL rd.retry=5 rw console=ttyS0,115200n81 selinux=0 init=/sbin/init rd.debug systemd.log_target=console loglevel=7" \
ace748
         -initrd "$TESTDIR"/initramfs.testing
ace748
 
ace748
     { read OK; read IFACES; } < "$TESTDIR"/client.img
ace748
diff --git a/test/TEST-60-MTUMAC/test.sh b/test/TEST-60-MTUMAC/test.sh
1755ca
index b70e3161..f2d5c4a0 100755
ace748
--- a/test/TEST-60-MTUMAC/test.sh
ace748
+++ b/test/TEST-60-MTUMAC/test.sh
ace748
@@ -22,7 +22,8 @@ run_server() {
ace748
         ${SERIAL:+-serial "$SERIAL"} \
ace748
         -watchdog i6300esb -watchdog-action poweroff \
ace748
         -kernel /boot/vmlinuz-"$KVERSION" \
ace748
-        -append "loglevel=7 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0" \
ace748
+        -no-reboot \
ace748
+        -append "panic=1 loglevel=7 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0" \
ace748
         -initrd "$TESTDIR"/initramfs.server \
ace748
         -pidfile "$TESTDIR"/server.pid -daemonize || return 1
ace748
     chmod 644 -- "$TESTDIR"/server.pid || return 1
ace748
@@ -56,7 +57,8 @@ client_test() {
ace748
         -net nic,macaddr=52:54:00:12:34:05,model=e1000 \
ace748
         -watchdog i6300esb -watchdog-action poweroff \
ace748
         -kernel /boot/vmlinuz-"$KVERSION" \
ace748
-        -append "$cmdline $DEBUGFAIL rd.retry=5 rw console=ttyS0,115200n81 selinux=0 init=/sbin/init" \
ace748
+        -no-reboot \
ace748
+        -append "panic=1 $cmdline $DEBUGFAIL rd.retry=5 rw console=ttyS0,115200n81 selinux=0 init=/sbin/init" \
ace748
         -initrd "$TESTDIR"/initramfs.testing
ace748
 
ace748
     { 
ace748
diff --git a/test/TEST-70-BONDBRIDGETEAMVLAN/dhcpd.conf b/test/TEST-70-BONDBRIDGETEAMVLAN/dhcpd.conf
1755ca
index ec810c29..e26bd60b 100644
ace748
--- a/test/TEST-70-BONDBRIDGETEAMVLAN/dhcpd.conf
ace748
+++ b/test/TEST-70-BONDBRIDGETEAMVLAN/dhcpd.conf
ace748
@@ -22,6 +22,6 @@ subnet 192.168.51.0 netmask 255.255.255.0 {
ace748
 	option domain-name-servers 192.168.51.1;
ace748
 	option domain-search "example.com";
ace748
 	option domain-name "other.com";
ace748
-	option root-path "nfs:192.168.50.1:/nfs/client";
ace748
+	option root-path "nfs:192.168.51.1:/nfs/client";
ace748
 	range 192.168.51.10 192.168.51.100;
ace748
 }
ace748
diff --git a/test/TEST-70-BONDBRIDGETEAMVLAN/test.sh b/test/TEST-70-BONDBRIDGETEAMVLAN/test.sh
1755ca
index dcf9d5cf..9cf1f1a1 100755
ace748
--- a/test/TEST-70-BONDBRIDGETEAMVLAN/test.sh
ace748
+++ b/test/TEST-70-BONDBRIDGETEAMVLAN/test.sh
ace748
@@ -29,7 +29,8 @@ run_server() {
ace748
         ${SERIAL:+-serial "$SERIAL"} \
ace748
         -watchdog i6300esb -watchdog-action poweroff \
ace748
         -kernel /boot/vmlinuz-"$KVERSION" \
ace748
-        -append "loglevel=7 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0" \
ace748
+        -no-reboot \
ace748
+        -append "panic=1 loglevel=7 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0" \
ace748
         -initrd "$TESTDIR"/initramfs.server \
ace748
         -pidfile "$TESTDIR"/server.pid -daemonize || return 1
ace748
     chmod 644 -- "$TESTDIR"/server.pid || return 1
ace748
@@ -70,7 +71,8 @@ client_test() {
ace748
         -net nic,vlan=3,macaddr=52:54:00:12:34:05,model=e1000 \
ace748
         -watchdog i6300esb -watchdog-action poweroff \
ace748
         -kernel /boot/vmlinuz-"$KVERSION" \
ace748
-        -append "$cmdline rd.info $DEBUGFAIL rd.retry=5 rw console=ttyS0,115200n81 selinux=0 init=/sbin/init" \
ace748
+        -no-reboot \
ace748
+        -append "panic=1 $cmdline rd.info $DEBUGFAIL rd.retry=5 rw console=ttyS0,115200n81 selinux=0 init=/sbin/init" \
ace748
         -initrd "$TESTDIR"/initramfs.testing
ace748
 
ace748
     {