|
|
d4a4eb |
From e35e43c1c28a8935660fe72650614e5dc1defb65 Mon Sep 17 00:00:00 2001
|
|
|
d4a4eb |
From: Lubomir Rintel <lkundrak@v3.sk>
|
|
|
d4a4eb |
Date: Wed, 26 Jun 2019 11:47:21 +0200
|
|
|
d4a4eb |
Subject: [PATCH] test: tell systemd to reboot on fatal errors
|
|
|
d4a4eb |
|
|
|
d4a4eb |
Otherwise systemd would freeze execution, causing the test to time out
|
|
|
d4a4eb |
instead of failing fast.
|
|
|
d4a4eb |
|
|
|
d4a4eb |
(cherry picked from commit 7934c6f918de2e82d0df5da557c5792c4fb7b798)
|
|
|
d4a4eb |
---
|
|
|
d4a4eb |
test/TEST-01-BASIC/test.sh | 2 +-
|
|
|
d4a4eb |
test/TEST-02-SYSTEMD/test.sh | 2 +-
|
|
|
d4a4eb |
test/TEST-03-USR-MOUNT/test.sh | 2 +-
|
|
|
d4a4eb |
test/TEST-04-FULL-SYSTEMD/test.sh | 2 +-
|
|
|
d4a4eb |
test/TEST-10-RAID/test.sh | 2 +-
|
|
|
d4a4eb |
test/TEST-11-LVM/test.sh | 2 +-
|
|
|
d4a4eb |
test/TEST-12-RAID-DEG/test.sh | 2 +-
|
|
|
d4a4eb |
test/TEST-13-ENC-RAID-LVM/test.sh | 6 +++---
|
|
|
d4a4eb |
test/TEST-14-IMSM/test.sh | 2 +-
|
|
|
d4a4eb |
test/TEST-15-BTRFSRAID/test.sh | 2 +-
|
|
|
d4a4eb |
test/TEST-16-DMSQUASH/test.sh | 2 +-
|
|
|
d4a4eb |
test/TEST-17-LVM-THIN/test.sh | 2 +-
|
|
|
d4a4eb |
test/TEST-20-NFS/test.sh | 4 ++--
|
|
|
d4a4eb |
test/TEST-30-ISCSI/test.sh | 4 ++--
|
|
|
d4a4eb |
test/TEST-31-ISCSI-MULTI/test.sh | 4 ++--
|
|
|
d4a4eb |
test/TEST-40-NBD/test.sh | 4 ++--
|
|
|
d4a4eb |
test/TEST-50-MULTINIC/test.sh | 4 ++--
|
|
|
d4a4eb |
test/TEST-70-BONDBRIDGETEAMVLAN/test.sh | 6 +++---
|
|
|
d4a4eb |
18 files changed, 27 insertions(+), 27 deletions(-)
|
|
|
d4a4eb |
|
|
|
d4a4eb |
diff --git a/test/TEST-01-BASIC/test.sh b/test/TEST-01-BASIC/test.sh
|
|
|
d4a4eb |
index ed2ae5de..ca4a8288 100755
|
|
|
d4a4eb |
--- a/test/TEST-01-BASIC/test.sh
|
|
|
d4a4eb |
+++ b/test/TEST-01-BASIC/test.sh
|
|
|
d4a4eb |
@@ -15,7 +15,7 @@ test_run() {
|
|
|
d4a4eb |
-net none \
|
|
|
d4a4eb |
-watchdog i6300esb -watchdog-action poweroff \
|
|
|
d4a4eb |
-no-reboot \
|
|
|
d4a4eb |
- -append "panic=1 root=LABEL=dracut rw systemd.log_level=debug systemd.log_target=console rd.retry=3 rd.debug console=ttyS0,115200n81 rd.shell=0 $DEBUGFAIL" \
|
|
|
d4a4eb |
+ -append "panic=1 systemd.crash_reboot root=LABEL=dracut rw systemd.log_level=debug systemd.log_target=console rd.retry=3 rd.debug console=ttyS0,115200n81 rd.shell=0 $DEBUGFAIL" \
|
|
|
d4a4eb |
-initrd $TESTDIR/initramfs.testing || return 1
|
|
|
d4a4eb |
grep -F -m 1 -q dracut-root-block-success $TESTDIR/result || return 1
|
|
|
d4a4eb |
}
|
|
|
d4a4eb |
diff --git a/test/TEST-02-SYSTEMD/test.sh b/test/TEST-02-SYSTEMD/test.sh
|
|
|
d4a4eb |
index 8c5eb168..848021e5 100755
|
|
|
d4a4eb |
--- a/test/TEST-02-SYSTEMD/test.sh
|
|
|
d4a4eb |
+++ b/test/TEST-02-SYSTEMD/test.sh
|
|
|
d4a4eb |
@@ -11,7 +11,7 @@ test_run() {
|
|
|
d4a4eb |
-m 512M -smp 2 -nographic \
|
|
|
d4a4eb |
-net none \
|
|
|
d4a4eb |
-no-reboot \
|
|
|
d4a4eb |
- -append "panic=1 root=LABEL=dracut rw loglevel=77 systemd.log_level=debug systemd.log_target=console rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 init=/sbin/init rd.shell=0 $DEBUGFAIL" \
|
|
|
d4a4eb |
+ -append "panic=1 systemd.crash_reboot root=LABEL=dracut rw loglevel=77 systemd.log_level=debug systemd.log_target=console rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 init=/sbin/init rd.shell=0 $DEBUGFAIL" \
|
|
|
d4a4eb |
-initrd $TESTDIR/initramfs.testing
|
|
|
d4a4eb |
grep -F -m 1 -q dracut-root-block-success $TESTDIR/root.ext3 || return 1
|
|
|
d4a4eb |
}
|
|
|
d4a4eb |
diff --git a/test/TEST-03-USR-MOUNT/test.sh b/test/TEST-03-USR-MOUNT/test.sh
|
|
|
d4a4eb |
index 42c0da65..5d5ec8f8 100755
|
|
|
d4a4eb |
--- a/test/TEST-03-USR-MOUNT/test.sh
|
|
|
d4a4eb |
+++ b/test/TEST-03-USR-MOUNT/test.sh
|
|
|
d4a4eb |
@@ -22,7 +22,7 @@ client_run() {
|
|
|
d4a4eb |
-net none \
|
|
|
d4a4eb |
-watchdog i6300esb -watchdog-action poweroff \
|
|
|
d4a4eb |
-no-reboot \
|
|
|
d4a4eb |
- -append "panic=1 root=LABEL=dracut $client_opts quiet rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 rd.debug rd.shell=0 $DEBUGFAIL" \
|
|
|
d4a4eb |
+ -append "panic=1 systemd.crash_reboot root=LABEL=dracut $client_opts quiet rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 rd.debug rd.shell=0 $DEBUGFAIL" \
|
|
|
d4a4eb |
-initrd $TESTDIR/initramfs.testing
|
|
|
d4a4eb |
|
|
|
d4a4eb |
if (($? != 0)); then
|
|
|
d4a4eb |
diff --git a/test/TEST-04-FULL-SYSTEMD/test.sh b/test/TEST-04-FULL-SYSTEMD/test.sh
|
|
|
d4a4eb |
index 97528e4f..f65f30f2 100755
|
|
|
d4a4eb |
--- a/test/TEST-04-FULL-SYSTEMD/test.sh
|
|
|
d4a4eb |
+++ b/test/TEST-04-FULL-SYSTEMD/test.sh
|
|
|
d4a4eb |
@@ -23,7 +23,7 @@ client_run() {
|
|
|
d4a4eb |
-m 512M -smp 2 -nographic \
|
|
|
d4a4eb |
-net none \
|
|
|
d4a4eb |
-no-reboot \
|
|
|
d4a4eb |
- -append "panic=1 root=LABEL=dracut $client_opts rd.retry=3 console=ttyS0,115200n81 selinux=0 $DEBUGOUT rd.shell=0 $DEBUGFAIL" \
|
|
|
d4a4eb |
+ -append "panic=1 systemd.crash_reboot root=LABEL=dracut $client_opts rd.retry=3 console=ttyS0,115200n81 selinux=0 $DEBUGOUT rd.shell=0 $DEBUGFAIL" \
|
|
|
d4a4eb |
-initrd $TESTDIR/initramfs.testing
|
|
|
d4a4eb |
|
|
|
d4a4eb |
if (($? != 0)); then
|
|
|
d4a4eb |
diff --git a/test/TEST-10-RAID/test.sh b/test/TEST-10-RAID/test.sh
|
|
|
d4a4eb |
index 444126b2..0beb26c3 100755
|
|
|
d4a4eb |
--- a/test/TEST-10-RAID/test.sh
|
|
|
d4a4eb |
+++ b/test/TEST-10-RAID/test.sh
|
|
|
d4a4eb |
@@ -13,7 +13,7 @@ test_run() {
|
|
|
d4a4eb |
-m 512M -smp 2 -nographic \
|
|
|
d4a4eb |
-net none \
|
|
|
d4a4eb |
-no-reboot \
|
|
|
d4a4eb |
- -append "panic=1 root=/dev/dracut/root rd.auto rw rd.retry=10 console=ttyS0,115200n81 selinux=0 rd.shell=0 $DEBUGFAIL" \
|
|
|
d4a4eb |
+ -append "panic=1 systemd.crash_reboot root=/dev/dracut/root rd.auto rw rd.retry=10 console=ttyS0,115200n81 selinux=0 rd.shell=0 $DEBUGFAIL" \
|
|
|
d4a4eb |
-initrd $TESTDIR/initramfs.testing
|
|
|
d4a4eb |
grep -F -m 1 -q dracut-root-block-success $DISKIMAGE || return 1
|
|
|
d4a4eb |
}
|
|
|
d4a4eb |
diff --git a/test/TEST-11-LVM/test.sh b/test/TEST-11-LVM/test.sh
|
|
|
d4a4eb |
index 5c105e01..a907c4b1 100755
|
|
|
d4a4eb |
--- a/test/TEST-11-LVM/test.sh
|
|
|
d4a4eb |
+++ b/test/TEST-11-LVM/test.sh
|
|
|
d4a4eb |
@@ -12,7 +12,7 @@ test_run() {
|
|
|
d4a4eb |
-m 512M -smp 2 -nographic \
|
|
|
d4a4eb |
-net none \
|
|
|
d4a4eb |
-no-reboot \
|
|
|
d4a4eb |
- -append "panic=1 root=/dev/dracut/root rw rd.auto=1 quiet rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 rd.debug rd.shell=0 $DEBUGFAIL" \
|
|
|
d4a4eb |
+ -append "panic=1 systemd.crash_reboot root=/dev/dracut/root rw rd.auto=1 quiet rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 rd.debug rd.shell=0 $DEBUGFAIL" \
|
|
|
d4a4eb |
-initrd $TESTDIR/initramfs.testing
|
|
|
d4a4eb |
grep -F -m 1 -q dracut-root-block-success $TESTDIR/root.ext2 || return 1
|
|
|
d4a4eb |
}
|
|
|
d4a4eb |
diff --git a/test/TEST-12-RAID-DEG/test.sh b/test/TEST-12-RAID-DEG/test.sh
|
|
|
d4a4eb |
index 4e381d84..c82cde1e 100755
|
|
|
d4a4eb |
--- a/test/TEST-12-RAID-DEG/test.sh
|
|
|
d4a4eb |
+++ b/test/TEST-12-RAID-DEG/test.sh
|
|
|
d4a4eb |
@@ -20,7 +20,7 @@ client_run() {
|
|
|
d4a4eb |
-drive format=raw,index=3,media=disk,file=$TESTDIR/disk3.img.new \
|
|
|
d4a4eb |
-net none \
|
|
|
d4a4eb |
-no-reboot \
|
|
|
d4a4eb |
- -append "panic=1 $* systemd.log_target=kmsg loglevel=7 root=LABEL=root rw rd.retry=20 rd.info console=ttyS0,115200n81 log_buf_len=2M selinux=0 rd.debug rd.shell=0 $DEBUGFAIL " \
|
|
|
d4a4eb |
+ -append "panic=1 systemd.crash_reboot $* systemd.log_target=kmsg loglevel=7 root=LABEL=root rw rd.retry=20 rd.info console=ttyS0,115200n81 log_buf_len=2M selinux=0 rd.debug rd.shell=0 $DEBUGFAIL " \
|
|
|
d4a4eb |
-initrd $TESTDIR/initramfs.testing
|
|
|
d4a4eb |
if ! grep -F -m 1 -q dracut-root-block-success $TESTDIR/root.ext2; then
|
|
|
d4a4eb |
echo "CLIENT TEST END: $@ [FAIL]"
|
|
|
d4a4eb |
diff --git a/test/TEST-13-ENC-RAID-LVM/test.sh b/test/TEST-13-ENC-RAID-LVM/test.sh
|
|
|
d4a4eb |
index 76ec36b3..99324ce9 100755
|
|
|
d4a4eb |
--- a/test/TEST-13-ENC-RAID-LVM/test.sh
|
|
|
d4a4eb |
+++ b/test/TEST-13-ENC-RAID-LVM/test.sh
|
|
|
d4a4eb |
@@ -20,7 +20,7 @@ test_run() {
|
|
|
d4a4eb |
-m 512M -smp 2 -nographic \
|
|
|
d4a4eb |
-net none \
|
|
|
d4a4eb |
-no-reboot \
|
|
|
d4a4eb |
- -append "panic=1 root=/dev/dracut/root rw rd.auto rd.retry=20 console=ttyS0,115200n81 selinux=0 rd.debug rootwait $LUKSARGS rd.shell=0 $DEBUGFAIL" \
|
|
|
d4a4eb |
+ -append "panic=1 systemd.crash_reboot root=/dev/dracut/root rw rd.auto rd.retry=20 console=ttyS0,115200n81 selinux=0 rd.debug rootwait $LUKSARGS rd.shell=0 $DEBUGFAIL" \
|
|
|
d4a4eb |
-initrd $TESTDIR/initramfs.testing
|
|
|
d4a4eb |
grep -F -m 1 -q dracut-root-block-success $TESTDIR/check-success.img || return 1
|
|
|
d4a4eb |
echo "CLIENT TEST END: [OK]"
|
|
|
d4a4eb |
@@ -34,7 +34,7 @@ test_run() {
|
|
|
d4a4eb |
-m 512M -smp 2 -nographic \
|
|
|
d4a4eb |
-net none \
|
|
|
d4a4eb |
-no-reboot \
|
|
|
d4a4eb |
- -append "panic=1 root=/dev/dracut/root rw quiet rd.auto rd.retry=20 rd.info console=ttyS0,115200n81 selinux=0 rd.debug $DEBUGFAIL" \
|
|
|
d4a4eb |
+ -append "panic=1 systemd.crash_reboot root=/dev/dracut/root rw quiet rd.auto rd.retry=20 rd.info console=ttyS0,115200n81 selinux=0 rd.debug $DEBUGFAIL" \
|
|
|
d4a4eb |
-initrd $TESTDIR/initramfs.testing
|
|
|
d4a4eb |
grep -F -m 1 -q dracut-root-block-success $TESTDIR/check-success.img || return 1
|
|
|
d4a4eb |
echo "CLIENT TEST END: [OK]"
|
|
|
d4a4eb |
@@ -48,7 +48,7 @@ test_run() {
|
|
|
d4a4eb |
-m 512M -smp 2 -nographic \
|
|
|
d4a4eb |
-net none \
|
|
|
d4a4eb |
-no-reboot \
|
|
|
d4a4eb |
- -append "panic=1 root=/dev/dracut/root rw quiet rd.auto rd.retry=10 rd.info console=ttyS0,115200n81 selinux=0 rd.debug $DEBUGFAIL rd.luks.uuid=failme" \
|
|
|
d4a4eb |
+ -append "panic=1 systemd.crash_reboot root=/dev/dracut/root rw quiet rd.auto rd.retry=10 rd.info console=ttyS0,115200n81 selinux=0 rd.debug $DEBUGFAIL rd.luks.uuid=failme" \
|
|
|
d4a4eb |
-initrd $TESTDIR/initramfs.testing
|
|
|
d4a4eb |
grep -F -m 1 -q dracut-root-block-success $TESTDIR/check-success.img && return 1
|
|
|
d4a4eb |
echo "CLIENT TEST END: [OK]"
|
|
|
d4a4eb |
diff --git a/test/TEST-14-IMSM/test.sh b/test/TEST-14-IMSM/test.sh
|
|
|
d4a4eb |
index 8ebc285a..ed60f052 100755
|
|
|
d4a4eb |
--- a/test/TEST-14-IMSM/test.sh
|
|
|
d4a4eb |
+++ b/test/TEST-14-IMSM/test.sh
|
|
|
d4a4eb |
@@ -16,7 +16,7 @@ client_run() {
|
|
|
d4a4eb |
-m 512M -smp 2 -nographic \
|
|
|
d4a4eb |
-net none \
|
|
|
d4a4eb |
-no-reboot \
|
|
|
d4a4eb |
- -append "panic=1 $* root=LABEL=root rw debug rd.retry=5 rd.debug console=ttyS0,115200n81 selinux=0 rd.info rd.shell=0 $DEBUGFAIL" \
|
|
|
d4a4eb |
+ -append "panic=1 systemd.crash_reboot $* root=LABEL=root rw debug rd.retry=5 rd.debug console=ttyS0,115200n81 selinux=0 rd.info rd.shell=0 $DEBUGFAIL" \
|
|
|
d4a4eb |
-initrd $TESTDIR/initramfs.testing
|
|
|
d4a4eb |
if ! grep -F -m 1 -q dracut-root-block-success $TESTDIR/root.ext2; then
|
|
|
d4a4eb |
echo "CLIENT TEST END: $@ [FAIL]"
|
|
|
d4a4eb |
diff --git a/test/TEST-15-BTRFSRAID/test.sh b/test/TEST-15-BTRFSRAID/test.sh
|
|
|
d4a4eb |
index 02cb4976..dda76672 100755
|
|
|
d4a4eb |
--- a/test/TEST-15-BTRFSRAID/test.sh
|
|
|
d4a4eb |
+++ b/test/TEST-15-BTRFSRAID/test.sh
|
|
|
d4a4eb |
@@ -15,7 +15,7 @@ test_run() {
|
|
|
d4a4eb |
-m 512M -smp 2 -nographic \
|
|
|
d4a4eb |
-net none \
|
|
|
d4a4eb |
-no-reboot \
|
|
|
d4a4eb |
- -append "panic=1 root=LABEL=root rw rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 rd.shell=0 $DEBUGFAIL" \
|
|
|
d4a4eb |
+ -append "panic=1 systemd.crash_reboot root=LABEL=root rw rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 rd.shell=0 $DEBUGFAIL" \
|
|
|
d4a4eb |
-initrd $TESTDIR/initramfs.testing
|
|
|
d4a4eb |
grep -F -m 1 -q dracut-root-block-success $MARKER_DISKIMAGE || return 1
|
|
|
d4a4eb |
}
|
|
|
d4a4eb |
diff --git a/test/TEST-16-DMSQUASH/test.sh b/test/TEST-16-DMSQUASH/test.sh
|
|
|
d4a4eb |
index 45d8c4c0..65d5bdbb 100755
|
|
|
d4a4eb |
--- a/test/TEST-16-DMSQUASH/test.sh
|
|
|
d4a4eb |
+++ b/test/TEST-16-DMSQUASH/test.sh
|
|
|
d4a4eb |
@@ -23,7 +23,7 @@ test_run() {
|
|
|
d4a4eb |
-nographic \
|
|
|
d4a4eb |
-net none \
|
|
|
d4a4eb |
-no-reboot \
|
|
|
d4a4eb |
- -append "panic=1 root=live:CDLABEL=LiveCD live rw quiet rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 rd.shell=0 $DEBUGFAIL" \
|
|
|
d4a4eb |
+ -append "panic=1 systemd.crash_reboot root=live:CDLABEL=LiveCD live rw quiet rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 rd.shell=0 $DEBUGFAIL" \
|
|
|
d4a4eb |
-initrd "$TESTDIR"/initramfs.testing
|
|
|
d4a4eb |
|
|
|
d4a4eb |
# mediacheck test with qemu GUI
|
|
|
d4a4eb |
diff --git a/test/TEST-17-LVM-THIN/test.sh b/test/TEST-17-LVM-THIN/test.sh
|
|
|
d4a4eb |
index 1b36a216..c13e9063 100755
|
|
|
d4a4eb |
--- a/test/TEST-17-LVM-THIN/test.sh
|
|
|
d4a4eb |
+++ b/test/TEST-17-LVM-THIN/test.sh
|
|
|
d4a4eb |
@@ -12,7 +12,7 @@ test_run() {
|
|
|
d4a4eb |
-m 512M -smp 2 -nographic \
|
|
|
d4a4eb |
-net none \
|
|
|
d4a4eb |
-no-reboot \
|
|
|
d4a4eb |
- -append "panic=1 root=/dev/dracut/root rw rd.auto=1 quiet rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 rd.debug rd.shell=0 $DEBUGFAIL" \
|
|
|
d4a4eb |
+ -append "panic=1 systemd.crash_reboot root=/dev/dracut/root rw rd.auto=1 quiet rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 rd.debug rd.shell=0 $DEBUGFAIL" \
|
|
|
d4a4eb |
-initrd $TESTDIR/initramfs.testing
|
|
|
d4a4eb |
grep -F -m 1 -q dracut-root-block-success $TESTDIR/root.ext2 || return 1
|
|
|
d4a4eb |
}
|
|
|
d4a4eb |
diff --git a/test/TEST-20-NFS/test.sh b/test/TEST-20-NFS/test.sh
|
|
|
d4a4eb |
index e942745a..4ad7fd77 100755
|
|
|
d4a4eb |
--- a/test/TEST-20-NFS/test.sh
|
|
|
d4a4eb |
+++ b/test/TEST-20-NFS/test.sh
|
|
|
d4a4eb |
@@ -22,7 +22,7 @@ run_server() {
|
|
|
d4a4eb |
${SERIAL:--serial file:"$TESTDIR"/server.log} \
|
|
|
d4a4eb |
-watchdog i6300esb -watchdog-action poweroff \
|
|
|
d4a4eb |
-no-reboot \
|
|
|
d4a4eb |
- -append "panic=1 rd.debug loglevel=77 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0" \
|
|
|
d4a4eb |
+ -append "panic=1 systemd.crash_reboot rd.debug loglevel=77 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0" \
|
|
|
d4a4eb |
-initrd $TESTDIR/initramfs.server \
|
|
|
d4a4eb |
-pidfile $TESTDIR/server.pid -daemonize || return 1
|
|
|
d4a4eb |
sudo chmod 644 $TESTDIR/server.pid || return 1
|
|
|
d4a4eb |
@@ -57,7 +57,7 @@ client_test() {
|
|
|
d4a4eb |
-net socket,connect=127.0.0.1:12320 \
|
|
|
d4a4eb |
-watchdog i6300esb -watchdog-action poweroff \
|
|
|
d4a4eb |
-no-reboot \
|
|
|
d4a4eb |
- -append "panic=1 rd.shell=0 $cmdline $DEBUGFAIL rd.debug rd.retry=10 rd.info quiet ro console=ttyS0,115200n81 selinux=0" \
|
|
|
d4a4eb |
+ -append "panic=1 systemd.crash_reboot rd.shell=0 $cmdline $DEBUGFAIL rd.debug rd.retry=10 rd.info quiet ro console=ttyS0,115200n81 selinux=0" \
|
|
|
d4a4eb |
-initrd $TESTDIR/initramfs.testing
|
|
|
d4a4eb |
|
|
|
d4a4eb |
if [[ $? -ne 0 ]] || ! grep -F -m 1 -q nfs-OK $TESTDIR/client.img; then
|
|
|
d4a4eb |
diff --git a/test/TEST-30-ISCSI/test.sh b/test/TEST-30-ISCSI/test.sh
|
|
|
d4a4eb |
index f6cc56d5..d5a6ba58 100755
|
|
|
d4a4eb |
--- a/test/TEST-30-ISCSI/test.sh
|
|
|
d4a4eb |
+++ b/test/TEST-30-ISCSI/test.sh
|
|
|
d4a4eb |
@@ -26,7 +26,7 @@ run_server() {
|
|
|
d4a4eb |
-net nic,macaddr=52:54:00:12:34:57,model=e1000 \
|
|
|
d4a4eb |
-net socket,listen=127.0.0.1:12330 \
|
|
|
d4a4eb |
-no-reboot \
|
|
|
d4a4eb |
- -append "panic=1 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0 $SERVER_DEBUG" \
|
|
|
d4a4eb |
+ -append "panic=1 systemd.crash_reboot root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0 $SERVER_DEBUG" \
|
|
|
d4a4eb |
-initrd $TESTDIR/initramfs.server \
|
|
|
d4a4eb |
-pidfile $TESTDIR/server.pid -daemonize || return 1
|
|
|
d4a4eb |
sudo chmod 644 $TESTDIR/server.pid || return 1
|
|
|
d4a4eb |
@@ -51,7 +51,7 @@ run_client() {
|
|
|
d4a4eb |
-net nic,macaddr=52:54:00:12:34:01,model=e1000 \
|
|
|
d4a4eb |
-net socket,connect=127.0.0.1:12330 \
|
|
|
d4a4eb |
-no-reboot \
|
|
|
d4a4eb |
- -append "panic=1 rw rd.auto rd.retry=50 console=ttyS0,115200n81 selinux=0 rd.debug=0 rd.shell=0 $DEBUGFAIL $*" \
|
|
|
d4a4eb |
+ -append "panic=1 systemd.crash_reboot rw rd.auto rd.retry=50 console=ttyS0,115200n81 selinux=0 rd.debug=0 rd.shell=0 $DEBUGFAIL $*" \
|
|
|
d4a4eb |
-initrd $TESTDIR/initramfs.testing
|
|
|
d4a4eb |
if ! grep -F -m 1 -q iscsi-OK $TESTDIR/client.img; then
|
|
|
d4a4eb |
echo "CLIENT TEST END: $test_name [FAILED - BAD EXIT]"
|
|
|
d4a4eb |
diff --git a/test/TEST-31-ISCSI-MULTI/test.sh b/test/TEST-31-ISCSI-MULTI/test.sh
|
|
|
d4a4eb |
index 5c38249c..20db2451 100755
|
|
|
d4a4eb |
--- a/test/TEST-31-ISCSI-MULTI/test.sh
|
|
|
d4a4eb |
+++ b/test/TEST-31-ISCSI-MULTI/test.sh
|
|
|
d4a4eb |
@@ -26,7 +26,7 @@ run_server() {
|
|
|
d4a4eb |
-net nic,macaddr=52:54:00:12:34:57,model=e1000 \
|
|
|
d4a4eb |
-net socket,listen=127.0.0.1:12331 \
|
|
|
d4a4eb |
-no-reboot \
|
|
|
d4a4eb |
- -append "panic=1 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0 $SERVER_DEBUG" \
|
|
|
d4a4eb |
+ -append "panic=1 systemd.crash_reboot root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0 $SERVER_DEBUG" \
|
|
|
d4a4eb |
-initrd $TESTDIR/initramfs.server \
|
|
|
d4a4eb |
-pidfile $TESTDIR/server.pid -daemonize || return 1
|
|
|
d4a4eb |
sudo chmod 644 $TESTDIR/server.pid || return 1
|
|
|
d4a4eb |
@@ -51,7 +51,7 @@ run_client() {
|
|
|
d4a4eb |
-net nic,macaddr=52:54:00:12:34:01,model=e1000 \
|
|
|
d4a4eb |
-net socket,connect=127.0.0.1:12331 \
|
|
|
d4a4eb |
-no-reboot \
|
|
|
d4a4eb |
- -append "panic=1 rw rd.auto rd.retry=50 console=ttyS0,115200n81 selinux=0 rd.debug=0 rd.shell=0 $DEBUGFAIL $*" \
|
|
|
d4a4eb |
+ -append "panic=1 systemd.crash_reboot rw rd.auto rd.retry=50 console=ttyS0,115200n81 selinux=0 rd.debug=0 rd.shell=0 $DEBUGFAIL $*" \
|
|
|
d4a4eb |
-initrd $TESTDIR/initramfs.testing
|
|
|
d4a4eb |
if ! grep -F -m 1 -q iscsi-OK $TESTDIR/client.img; then
|
|
|
d4a4eb |
echo "CLIENT TEST END: $test_name [FAILED - BAD EXIT]"
|
|
|
d4a4eb |
diff --git a/test/TEST-40-NBD/test.sh b/test/TEST-40-NBD/test.sh
|
|
|
d4a4eb |
index 12736a15..19ec5b0e 100755
|
|
|
d4a4eb |
--- a/test/TEST-40-NBD/test.sh
|
|
|
d4a4eb |
+++ b/test/TEST-40-NBD/test.sh
|
|
|
d4a4eb |
@@ -28,7 +28,7 @@ run_server() {
|
|
|
d4a4eb |
${SERIAL:+-serial "$SERIAL"} \
|
|
|
d4a4eb |
${SERIAL:--serial file:"$TESTDIR"/server.log} \
|
|
|
d4a4eb |
-no-reboot \
|
|
|
d4a4eb |
- -append "panic=1 root=/dev/sda rootfstype=ext2 rw quiet console=ttyS0,115200n81 selinux=0" \
|
|
|
d4a4eb |
+ -append "panic=1 systemd.crash_reboot root=/dev/sda rootfstype=ext2 rw quiet console=ttyS0,115200n81 selinux=0" \
|
|
|
d4a4eb |
-initrd $TESTDIR/initramfs.server -pidfile $TESTDIR/server.pid -daemonize || return 1
|
|
|
d4a4eb |
sudo chmod 644 $TESTDIR/server.pid || return 1
|
|
|
d4a4eb |
|
|
|
d4a4eb |
@@ -65,7 +65,7 @@ client_test() {
|
|
|
d4a4eb |
-net nic,macaddr=$mac,model=e1000 \
|
|
|
d4a4eb |
-net socket,connect=127.0.0.1:12340 \
|
|
|
d4a4eb |
-no-reboot \
|
|
|
d4a4eb |
- -append "panic=1 rd.shell=0 $cmdline $DEBUGFAIL rd.auto rd.info rd.retry=10 ro console=ttyS0,115200n81 selinux=0 " \
|
|
|
d4a4eb |
+ -append "panic=1 systemd.crash_reboot rd.shell=0 $cmdline $DEBUGFAIL rd.auto rd.info rd.retry=10 ro console=ttyS0,115200n81 selinux=0 " \
|
|
|
d4a4eb |
-initrd $TESTDIR/initramfs.testing
|
|
|
d4a4eb |
|
|
|
d4a4eb |
if [[ $? -ne 0 ]] || ! grep -F -m 1 -q nbd-OK $TESTDIR/flag.img; then
|
|
|
d4a4eb |
diff --git a/test/TEST-50-MULTINIC/test.sh b/test/TEST-50-MULTINIC/test.sh
|
|
|
d4a4eb |
index 495a66f2..ff2961dc 100755
|
|
|
d4a4eb |
--- a/test/TEST-50-MULTINIC/test.sh
|
|
|
d4a4eb |
+++ b/test/TEST-50-MULTINIC/test.sh
|
|
|
d4a4eb |
@@ -23,7 +23,7 @@ run_server() {
|
|
|
d4a4eb |
${SERIAL:--serial file:"$TESTDIR"/server.log} \
|
|
|
d4a4eb |
-watchdog i6300esb -watchdog-action poweroff \
|
|
|
d4a4eb |
-no-reboot \
|
|
|
d4a4eb |
- -append "panic=1 loglevel=7 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0" \
|
|
|
d4a4eb |
+ -append "panic=1 systemd.crash_reboot loglevel=7 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0" \
|
|
|
d4a4eb |
-initrd "$TESTDIR"/initramfs.server \
|
|
|
d4a4eb |
-pidfile "$TESTDIR"/server.pid -daemonize || return 1
|
|
|
d4a4eb |
|
|
|
d4a4eb |
@@ -63,7 +63,7 @@ client_test() {
|
|
|
d4a4eb |
-device e1000,netdev=n2,mac=52:54:00:12:34:99 \
|
|
|
d4a4eb |
-watchdog i6300esb -watchdog-action poweroff \
|
|
|
d4a4eb |
-no-reboot \
|
|
|
d4a4eb |
- -append "panic=1 rd.shell=0 $cmdline $DEBUGFAIL rd.retry=5 ro console=ttyS0,115200n81 selinux=0 init=/sbin/init rd.debug systemd.log_target=console loglevel=7" \
|
|
|
d4a4eb |
+ -append "panic=1 systemd.crash_reboot rd.shell=0 $cmdline $DEBUGFAIL rd.retry=5 ro console=ttyS0,115200n81 selinux=0 init=/sbin/init rd.debug systemd.log_target=console loglevel=7" \
|
|
|
d4a4eb |
-initrd "$TESTDIR"/initramfs.testing
|
|
|
d4a4eb |
|
|
|
d4a4eb |
{ read OK; read IFACES; } < "$TESTDIR"/client.img
|
|
|
d4a4eb |
diff --git a/test/TEST-70-BONDBRIDGETEAMVLAN/test.sh b/test/TEST-70-BONDBRIDGETEAMVLAN/test.sh
|
|
|
d4a4eb |
index 8c11a7d3..5618baee 100755
|
|
|
d4a4eb |
--- a/test/TEST-70-BONDBRIDGETEAMVLAN/test.sh
|
|
|
d4a4eb |
+++ b/test/TEST-70-BONDBRIDGETEAMVLAN/test.sh
|
|
|
d4a4eb |
@@ -31,7 +31,7 @@ run_server() {
|
|
|
d4a4eb |
${SERIAL:--serial file:"$TESTDIR"/server.log} \
|
|
|
d4a4eb |
-watchdog i6300esb -watchdog-action poweroff \
|
|
|
d4a4eb |
-no-reboot \
|
|
|
d4a4eb |
- -append "panic=1 loglevel=7 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0 rd.debug" \
|
|
|
d4a4eb |
+ -append "panic=1 systemd.crash_reboot loglevel=7 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0 rd.debug" \
|
|
|
d4a4eb |
-initrd "$TESTDIR"/initramfs.server \
|
|
|
d4a4eb |
-pidfile "$TESTDIR"/server.pid -daemonize || return 1
|
|
|
d4a4eb |
chmod 644 -- "$TESTDIR"/server.pid || return 1
|
|
|
d4a4eb |
@@ -79,7 +79,7 @@ client_test() {
|
|
|
d4a4eb |
$nic3 -device e1000,mac=52:54:00:12:34:05,netdev=n3 \
|
|
|
d4a4eb |
-watchdog i6300esb -watchdog-action poweroff \
|
|
|
d4a4eb |
-no-reboot \
|
|
|
d4a4eb |
- -append "panic=1 $cmdline rd.debug $DEBUGFAIL rd.retry=5 rw console=ttyS0,115200n81 selinux=0 init=/sbin/init" \
|
|
|
d4a4eb |
+ -append "panic=1 systemd.crash_reboot $cmdline rd.debug $DEBUGFAIL rd.retry=5 rw console=ttyS0,115200n81 selinux=0 init=/sbin/init" \
|
|
|
d4a4eb |
-initrd "$TESTDIR"/initramfs.testing
|
|
|
d4a4eb |
else
|
|
|
d4a4eb |
$testdir/run-qemu \
|
|
|
d4a4eb |
@@ -95,7 +95,7 @@ client_test() {
|
|
|
d4a4eb |
-net nic,vlan=3,macaddr=52:54:00:12:34:05,model=e1000 \
|
|
|
d4a4eb |
-watchdog i6300esb -watchdog-action poweroff \
|
|
|
d4a4eb |
-no-reboot \
|
|
|
d4a4eb |
- -append "panic=1 $cmdline rd.debug $DEBUGFAIL rd.retry=5 rw console=ttyS0,115200n81 selinux=0 init=/sbin/init" \
|
|
|
d4a4eb |
+ -append "panic=1 systemd.crash_reboot $cmdline rd.debug $DEBUGFAIL rd.retry=5 rw console=ttyS0,115200n81 selinux=0 init=/sbin/init" \
|
|
|
d4a4eb |
-initrd "$TESTDIR"/initramfs.testing
|
|
|
d4a4eb |
fi
|
|
|
d4a4eb |
|
|
|
d4a4eb |
|