test: tell systemd to reboot on fatal errors
Otherwise systemd would freeze execution, causing the test to time out instead of failing fast.master
parent
c27ed38bb2
commit
7934c6f918
|
|
@ -15,7 +15,7 @@ test_run() {
|
||||||
-net none \
|
-net none \
|
||||||
-watchdog i6300esb -watchdog-action poweroff \
|
-watchdog i6300esb -watchdog-action poweroff \
|
||||||
-no-reboot \
|
-no-reboot \
|
||||||
-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" \
|
-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" \
|
||||||
-initrd $TESTDIR/initramfs.testing || return 1
|
-initrd $TESTDIR/initramfs.testing || return 1
|
||||||
grep -F -m 1 -q dracut-root-block-success $TESTDIR/result || return 1
|
grep -F -m 1 -q dracut-root-block-success $TESTDIR/result || return 1
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ test_run() {
|
||||||
-m 512M -smp 2 -nographic \
|
-m 512M -smp 2 -nographic \
|
||||||
-net none \
|
-net none \
|
||||||
-no-reboot \
|
-no-reboot \
|
||||||
-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" \
|
-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" \
|
||||||
-initrd $TESTDIR/initramfs.testing
|
-initrd $TESTDIR/initramfs.testing
|
||||||
grep -F -m 1 -q dracut-root-block-success $TESTDIR/root.ext3 || return 1
|
grep -F -m 1 -q dracut-root-block-success $TESTDIR/root.ext3 || return 1
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ client_run() {
|
||||||
-net none \
|
-net none \
|
||||||
-watchdog i6300esb -watchdog-action poweroff \
|
-watchdog i6300esb -watchdog-action poweroff \
|
||||||
-no-reboot \
|
-no-reboot \
|
||||||
-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" \
|
-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" \
|
||||||
-initrd $TESTDIR/initramfs.testing
|
-initrd $TESTDIR/initramfs.testing
|
||||||
|
|
||||||
if (($? != 0)); then
|
if (($? != 0)); then
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ client_run() {
|
||||||
-m 512M -smp 2 -nographic \
|
-m 512M -smp 2 -nographic \
|
||||||
-net none \
|
-net none \
|
||||||
-no-reboot \
|
-no-reboot \
|
||||||
-append "panic=1 root=LABEL=dracut $client_opts rd.retry=3 console=ttyS0,115200n81 selinux=0 $DEBUGOUT rd.shell=0 $DEBUGFAIL" \
|
-append "panic=1 systemd.crash_reboot root=LABEL=dracut $client_opts rd.retry=3 console=ttyS0,115200n81 selinux=0 $DEBUGOUT rd.shell=0 $DEBUGFAIL" \
|
||||||
-initrd $TESTDIR/initramfs.testing
|
-initrd $TESTDIR/initramfs.testing
|
||||||
|
|
||||||
if (($? != 0)); then
|
if (($? != 0)); then
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ test_run() {
|
||||||
-m 512M -smp 2 -nographic \
|
-m 512M -smp 2 -nographic \
|
||||||
-net none \
|
-net none \
|
||||||
-no-reboot \
|
-no-reboot \
|
||||||
-append "panic=1 root=/dev/dracut/root rd.auto rw rd.retry=10 console=ttyS0,115200n81 selinux=0 rd.shell=0 $DEBUGFAIL" \
|
-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" \
|
||||||
-initrd $TESTDIR/initramfs.testing
|
-initrd $TESTDIR/initramfs.testing
|
||||||
grep -F -m 1 -q dracut-root-block-success $DISKIMAGE || return 1
|
grep -F -m 1 -q dracut-root-block-success $DISKIMAGE || return 1
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ test_run() {
|
||||||
-m 512M -smp 2 -nographic \
|
-m 512M -smp 2 -nographic \
|
||||||
-net none \
|
-net none \
|
||||||
-no-reboot \
|
-no-reboot \
|
||||||
-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" \
|
-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" \
|
||||||
-initrd $TESTDIR/initramfs.testing
|
-initrd $TESTDIR/initramfs.testing
|
||||||
grep -F -m 1 -q dracut-root-block-success $TESTDIR/root.ext2 || return 1
|
grep -F -m 1 -q dracut-root-block-success $TESTDIR/root.ext2 || return 1
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ client_run() {
|
||||||
-drive format=raw,index=3,media=disk,file=$TESTDIR/disk3.img.new \
|
-drive format=raw,index=3,media=disk,file=$TESTDIR/disk3.img.new \
|
||||||
-net none \
|
-net none \
|
||||||
-no-reboot \
|
-no-reboot \
|
||||||
-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 " \
|
-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 " \
|
||||||
-initrd $TESTDIR/initramfs.testing
|
-initrd $TESTDIR/initramfs.testing
|
||||||
if ! grep -F -m 1 -q dracut-root-block-success $TESTDIR/root.ext2; then
|
if ! grep -F -m 1 -q dracut-root-block-success $TESTDIR/root.ext2; then
|
||||||
echo "CLIENT TEST END: $@ [FAIL]"
|
echo "CLIENT TEST END: $@ [FAIL]"
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ test_run() {
|
||||||
-m 512M -smp 2 -nographic \
|
-m 512M -smp 2 -nographic \
|
||||||
-net none \
|
-net none \
|
||||||
-no-reboot \
|
-no-reboot \
|
||||||
-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" \
|
-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" \
|
||||||
-initrd $TESTDIR/initramfs.testing
|
-initrd $TESTDIR/initramfs.testing
|
||||||
grep -F -m 1 -q dracut-root-block-success $TESTDIR/check-success.img || return 1
|
grep -F -m 1 -q dracut-root-block-success $TESTDIR/check-success.img || return 1
|
||||||
echo "CLIENT TEST END: [OK]"
|
echo "CLIENT TEST END: [OK]"
|
||||||
|
|
@ -34,7 +34,7 @@ test_run() {
|
||||||
-m 512M -smp 2 -nographic \
|
-m 512M -smp 2 -nographic \
|
||||||
-net none \
|
-net none \
|
||||||
-no-reboot \
|
-no-reboot \
|
||||||
-append "panic=1 root=/dev/dracut/root rw quiet rd.auto rd.retry=20 rd.info console=ttyS0,115200n81 selinux=0 rd.debug $DEBUGFAIL" \
|
-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" \
|
||||||
-initrd $TESTDIR/initramfs.testing
|
-initrd $TESTDIR/initramfs.testing
|
||||||
grep -F -m 1 -q dracut-root-block-success $TESTDIR/check-success.img || return 1
|
grep -F -m 1 -q dracut-root-block-success $TESTDIR/check-success.img || return 1
|
||||||
echo "CLIENT TEST END: [OK]"
|
echo "CLIENT TEST END: [OK]"
|
||||||
|
|
@ -48,7 +48,7 @@ test_run() {
|
||||||
-m 512M -smp 2 -nographic \
|
-m 512M -smp 2 -nographic \
|
||||||
-net none \
|
-net none \
|
||||||
-no-reboot \
|
-no-reboot \
|
||||||
-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" \
|
-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" \
|
||||||
-initrd $TESTDIR/initramfs.testing
|
-initrd $TESTDIR/initramfs.testing
|
||||||
grep -F -m 1 -q dracut-root-block-success $TESTDIR/check-success.img && return 1
|
grep -F -m 1 -q dracut-root-block-success $TESTDIR/check-success.img && return 1
|
||||||
echo "CLIENT TEST END: [OK]"
|
echo "CLIENT TEST END: [OK]"
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ client_run() {
|
||||||
-m 512M -smp 2 -nographic \
|
-m 512M -smp 2 -nographic \
|
||||||
-net none \
|
-net none \
|
||||||
-no-reboot \
|
-no-reboot \
|
||||||
-append "panic=1 $* root=LABEL=root rw debug rd.retry=5 rd.debug console=ttyS0,115200n81 selinux=0 rd.info rd.shell=0 $DEBUGFAIL" \
|
-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" \
|
||||||
-initrd $TESTDIR/initramfs.testing
|
-initrd $TESTDIR/initramfs.testing
|
||||||
if ! grep -F -m 1 -q dracut-root-block-success $TESTDIR/root.ext2; then
|
if ! grep -F -m 1 -q dracut-root-block-success $TESTDIR/root.ext2; then
|
||||||
echo "CLIENT TEST END: $@ [FAIL]"
|
echo "CLIENT TEST END: $@ [FAIL]"
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ test_run() {
|
||||||
-m 512M -smp 2 -nographic \
|
-m 512M -smp 2 -nographic \
|
||||||
-net none \
|
-net none \
|
||||||
-no-reboot \
|
-no-reboot \
|
||||||
-append "panic=1 root=LABEL=root rw rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 rd.shell=0 $DEBUGFAIL" \
|
-append "panic=1 systemd.crash_reboot root=LABEL=root rw rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 rd.shell=0 $DEBUGFAIL" \
|
||||||
-initrd $TESTDIR/initramfs.testing
|
-initrd $TESTDIR/initramfs.testing
|
||||||
grep -F -m 1 -q dracut-root-block-success $MARKER_DISKIMAGE || return 1
|
grep -F -m 1 -q dracut-root-block-success $MARKER_DISKIMAGE || return 1
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ test_run() {
|
||||||
-nographic \
|
-nographic \
|
||||||
-net none \
|
-net none \
|
||||||
-no-reboot \
|
-no-reboot \
|
||||||
-append "panic=1 root=live:CDLABEL=LiveCD live rw quiet rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 rd.shell=0 $DEBUGFAIL" \
|
-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" \
|
||||||
-initrd "$TESTDIR"/initramfs.testing
|
-initrd "$TESTDIR"/initramfs.testing
|
||||||
|
|
||||||
# mediacheck test with qemu GUI
|
# mediacheck test with qemu GUI
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ test_run() {
|
||||||
-m 512M -smp 2 -nographic \
|
-m 512M -smp 2 -nographic \
|
||||||
-net none \
|
-net none \
|
||||||
-no-reboot \
|
-no-reboot \
|
||||||
-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" \
|
-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" \
|
||||||
-initrd $TESTDIR/initramfs.testing
|
-initrd $TESTDIR/initramfs.testing
|
||||||
grep -F -m 1 -q dracut-root-block-success $TESTDIR/root.ext2 || return 1
|
grep -F -m 1 -q dracut-root-block-success $TESTDIR/root.ext2 || return 1
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ run_server() {
|
||||||
${SERIAL:--serial file:"$TESTDIR"/server.log} \
|
${SERIAL:--serial file:"$TESTDIR"/server.log} \
|
||||||
-watchdog i6300esb -watchdog-action poweroff \
|
-watchdog i6300esb -watchdog-action poweroff \
|
||||||
-no-reboot \
|
-no-reboot \
|
||||||
-append "panic=1 rd.debug loglevel=77 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0" \
|
-append "panic=1 systemd.crash_reboot rd.debug loglevel=77 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0" \
|
||||||
-initrd $TESTDIR/initramfs.server \
|
-initrd $TESTDIR/initramfs.server \
|
||||||
-pidfile $TESTDIR/server.pid -daemonize || return 1
|
-pidfile $TESTDIR/server.pid -daemonize || return 1
|
||||||
sudo chmod 644 $TESTDIR/server.pid || return 1
|
sudo chmod 644 $TESTDIR/server.pid || return 1
|
||||||
|
|
@ -57,7 +57,7 @@ client_test() {
|
||||||
-net socket,connect=127.0.0.1:12320 \
|
-net socket,connect=127.0.0.1:12320 \
|
||||||
-watchdog i6300esb -watchdog-action poweroff \
|
-watchdog i6300esb -watchdog-action poweroff \
|
||||||
-no-reboot \
|
-no-reboot \
|
||||||
-append "panic=1 rd.shell=0 $cmdline $DEBUGFAIL rd.debug rd.retry=10 rd.info quiet ro console=ttyS0,115200n81 selinux=0" \
|
-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" \
|
||||||
-initrd $TESTDIR/initramfs.testing
|
-initrd $TESTDIR/initramfs.testing
|
||||||
|
|
||||||
if [[ $? -ne 0 ]] || ! grep -F -m 1 -q nfs-OK $TESTDIR/client.img; then
|
if [[ $? -ne 0 ]] || ! grep -F -m 1 -q nfs-OK $TESTDIR/client.img; then
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ run_server() {
|
||||||
-net nic,macaddr=52:54:00:12:34:57,model=e1000 \
|
-net nic,macaddr=52:54:00:12:34:57,model=e1000 \
|
||||||
-net socket,listen=127.0.0.1:12330 \
|
-net socket,listen=127.0.0.1:12330 \
|
||||||
-no-reboot \
|
-no-reboot \
|
||||||
-append "panic=1 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0 $SERVER_DEBUG" \
|
-append "panic=1 systemd.crash_reboot root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0 $SERVER_DEBUG" \
|
||||||
-initrd $TESTDIR/initramfs.server \
|
-initrd $TESTDIR/initramfs.server \
|
||||||
-pidfile $TESTDIR/server.pid -daemonize || return 1
|
-pidfile $TESTDIR/server.pid -daemonize || return 1
|
||||||
sudo chmod 644 $TESTDIR/server.pid || return 1
|
sudo chmod 644 $TESTDIR/server.pid || return 1
|
||||||
|
|
@ -51,7 +51,7 @@ run_client() {
|
||||||
-net nic,macaddr=52:54:00:12:34:01,model=e1000 \
|
-net nic,macaddr=52:54:00:12:34:01,model=e1000 \
|
||||||
-net socket,connect=127.0.0.1:12330 \
|
-net socket,connect=127.0.0.1:12330 \
|
||||||
-no-reboot \
|
-no-reboot \
|
||||||
-append "panic=1 rw rd.auto rd.retry=50 console=ttyS0,115200n81 selinux=0 rd.debug=0 rd.shell=0 $DEBUGFAIL $*" \
|
-append "panic=1 systemd.crash_reboot rw rd.auto rd.retry=50 console=ttyS0,115200n81 selinux=0 rd.debug=0 rd.shell=0 $DEBUGFAIL $*" \
|
||||||
-initrd $TESTDIR/initramfs.testing
|
-initrd $TESTDIR/initramfs.testing
|
||||||
if ! grep -F -m 1 -q iscsi-OK $TESTDIR/client.img; then
|
if ! grep -F -m 1 -q iscsi-OK $TESTDIR/client.img; then
|
||||||
echo "CLIENT TEST END: $test_name [FAILED - BAD EXIT]"
|
echo "CLIENT TEST END: $test_name [FAILED - BAD EXIT]"
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ run_server() {
|
||||||
-net nic,macaddr=52:54:00:12:34:57,model=e1000 \
|
-net nic,macaddr=52:54:00:12:34:57,model=e1000 \
|
||||||
-net socket,listen=127.0.0.1:12331 \
|
-net socket,listen=127.0.0.1:12331 \
|
||||||
-no-reboot \
|
-no-reboot \
|
||||||
-append "panic=1 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0 $SERVER_DEBUG" \
|
-append "panic=1 systemd.crash_reboot root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0 $SERVER_DEBUG" \
|
||||||
-initrd $TESTDIR/initramfs.server \
|
-initrd $TESTDIR/initramfs.server \
|
||||||
-pidfile $TESTDIR/server.pid -daemonize || return 1
|
-pidfile $TESTDIR/server.pid -daemonize || return 1
|
||||||
sudo chmod 644 $TESTDIR/server.pid || return 1
|
sudo chmod 644 $TESTDIR/server.pid || return 1
|
||||||
|
|
@ -51,7 +51,7 @@ run_client() {
|
||||||
-net nic,macaddr=52:54:00:12:34:01,model=e1000 \
|
-net nic,macaddr=52:54:00:12:34:01,model=e1000 \
|
||||||
-net socket,connect=127.0.0.1:12331 \
|
-net socket,connect=127.0.0.1:12331 \
|
||||||
-no-reboot \
|
-no-reboot \
|
||||||
-append "panic=1 rw rd.auto rd.retry=50 console=ttyS0,115200n81 selinux=0 rd.debug=0 rd.shell=0 $DEBUGFAIL $*" \
|
-append "panic=1 systemd.crash_reboot rw rd.auto rd.retry=50 console=ttyS0,115200n81 selinux=0 rd.debug=0 rd.shell=0 $DEBUGFAIL $*" \
|
||||||
-initrd $TESTDIR/initramfs.testing
|
-initrd $TESTDIR/initramfs.testing
|
||||||
if ! grep -F -m 1 -q iscsi-OK $TESTDIR/client.img; then
|
if ! grep -F -m 1 -q iscsi-OK $TESTDIR/client.img; then
|
||||||
echo "CLIENT TEST END: $test_name [FAILED - BAD EXIT]"
|
echo "CLIENT TEST END: $test_name [FAILED - BAD EXIT]"
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ run_server() {
|
||||||
${SERIAL:+-serial "$SERIAL"} \
|
${SERIAL:+-serial "$SERIAL"} \
|
||||||
${SERIAL:--serial file:"$TESTDIR"/server.log} \
|
${SERIAL:--serial file:"$TESTDIR"/server.log} \
|
||||||
-no-reboot \
|
-no-reboot \
|
||||||
-append "panic=1 root=/dev/sda rootfstype=ext2 rw quiet console=ttyS0,115200n81 selinux=0" \
|
-append "panic=1 systemd.crash_reboot root=/dev/sda rootfstype=ext2 rw quiet console=ttyS0,115200n81 selinux=0" \
|
||||||
-initrd $TESTDIR/initramfs.server -pidfile $TESTDIR/server.pid -daemonize || return 1
|
-initrd $TESTDIR/initramfs.server -pidfile $TESTDIR/server.pid -daemonize || return 1
|
||||||
sudo chmod 644 $TESTDIR/server.pid || return 1
|
sudo chmod 644 $TESTDIR/server.pid || return 1
|
||||||
|
|
||||||
|
|
@ -65,7 +65,7 @@ client_test() {
|
||||||
-net nic,macaddr=$mac,model=e1000 \
|
-net nic,macaddr=$mac,model=e1000 \
|
||||||
-net socket,connect=127.0.0.1:12340 \
|
-net socket,connect=127.0.0.1:12340 \
|
||||||
-no-reboot \
|
-no-reboot \
|
||||||
-append "panic=1 rd.shell=0 $cmdline $DEBUGFAIL rd.auto rd.info rd.retry=10 ro console=ttyS0,115200n81 selinux=0 " \
|
-append "panic=1 systemd.crash_reboot rd.shell=0 $cmdline $DEBUGFAIL rd.auto rd.info rd.retry=10 ro console=ttyS0,115200n81 selinux=0 " \
|
||||||
-initrd $TESTDIR/initramfs.testing
|
-initrd $TESTDIR/initramfs.testing
|
||||||
|
|
||||||
if [[ $? -ne 0 ]] || ! grep -F -m 1 -q nbd-OK $TESTDIR/flag.img; then
|
if [[ $? -ne 0 ]] || ! grep -F -m 1 -q nbd-OK $TESTDIR/flag.img; then
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ run_server() {
|
||||||
${SERIAL:--serial file:"$TESTDIR"/server.log} \
|
${SERIAL:--serial file:"$TESTDIR"/server.log} \
|
||||||
-watchdog i6300esb -watchdog-action poweroff \
|
-watchdog i6300esb -watchdog-action poweroff \
|
||||||
-no-reboot \
|
-no-reboot \
|
||||||
-append "panic=1 loglevel=7 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0" \
|
-append "panic=1 systemd.crash_reboot loglevel=7 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0" \
|
||||||
-initrd "$TESTDIR"/initramfs.server \
|
-initrd "$TESTDIR"/initramfs.server \
|
||||||
-pidfile "$TESTDIR"/server.pid -daemonize || return 1
|
-pidfile "$TESTDIR"/server.pid -daemonize || return 1
|
||||||
|
|
||||||
|
|
@ -63,7 +63,7 @@ client_test() {
|
||||||
-device e1000,netdev=n2,mac=52:54:00:12:34:99 \
|
-device e1000,netdev=n2,mac=52:54:00:12:34:99 \
|
||||||
-watchdog i6300esb -watchdog-action poweroff \
|
-watchdog i6300esb -watchdog-action poweroff \
|
||||||
-no-reboot \
|
-no-reboot \
|
||||||
-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" \
|
-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" \
|
||||||
-initrd "$TESTDIR"/initramfs.testing
|
-initrd "$TESTDIR"/initramfs.testing
|
||||||
|
|
||||||
{ read OK; read IFACES; } < "$TESTDIR"/client.img
|
{ read OK; read IFACES; } < "$TESTDIR"/client.img
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ run_server() {
|
||||||
${SERIAL:--serial file:"$TESTDIR"/server.log} \
|
${SERIAL:--serial file:"$TESTDIR"/server.log} \
|
||||||
-watchdog i6300esb -watchdog-action poweroff \
|
-watchdog i6300esb -watchdog-action poweroff \
|
||||||
-no-reboot \
|
-no-reboot \
|
||||||
-append "panic=1 loglevel=7 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0 rd.debug" \
|
-append "panic=1 systemd.crash_reboot loglevel=7 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0 rd.debug" \
|
||||||
-initrd "$TESTDIR"/initramfs.server \
|
-initrd "$TESTDIR"/initramfs.server \
|
||||||
-pidfile "$TESTDIR"/server.pid -daemonize || return 1
|
-pidfile "$TESTDIR"/server.pid -daemonize || return 1
|
||||||
chmod 644 -- "$TESTDIR"/server.pid || return 1
|
chmod 644 -- "$TESTDIR"/server.pid || return 1
|
||||||
|
|
@ -79,7 +79,7 @@ client_test() {
|
||||||
$nic3 -device e1000,mac=52:54:00:12:34:05,netdev=n3 \
|
$nic3 -device e1000,mac=52:54:00:12:34:05,netdev=n3 \
|
||||||
-watchdog i6300esb -watchdog-action poweroff \
|
-watchdog i6300esb -watchdog-action poweroff \
|
||||||
-no-reboot \
|
-no-reboot \
|
||||||
-append "panic=1 $cmdline rd.debug $DEBUGFAIL rd.retry=5 rw console=ttyS0,115200n81 selinux=0 init=/sbin/init" \
|
-append "panic=1 systemd.crash_reboot $cmdline rd.debug $DEBUGFAIL rd.retry=5 rw console=ttyS0,115200n81 selinux=0 init=/sbin/init" \
|
||||||
-initrd "$TESTDIR"/initramfs.testing
|
-initrd "$TESTDIR"/initramfs.testing
|
||||||
else
|
else
|
||||||
$testdir/run-qemu \
|
$testdir/run-qemu \
|
||||||
|
|
@ -95,7 +95,7 @@ client_test() {
|
||||||
-net nic,vlan=3,macaddr=52:54:00:12:34:05,model=e1000 \
|
-net nic,vlan=3,macaddr=52:54:00:12:34:05,model=e1000 \
|
||||||
-watchdog i6300esb -watchdog-action poweroff \
|
-watchdog i6300esb -watchdog-action poweroff \
|
||||||
-no-reboot \
|
-no-reboot \
|
||||||
-append "panic=1 $cmdline rd.debug $DEBUGFAIL rd.retry=5 rw console=ttyS0,115200n81 selinux=0 init=/sbin/init" \
|
-append "panic=1 systemd.crash_reboot $cmdline rd.debug $DEBUGFAIL rd.retry=5 rw console=ttyS0,115200n81 selinux=0 init=/sbin/init" \
|
||||||
-initrd "$TESTDIR"/initramfs.testing
|
-initrd "$TESTDIR"/initramfs.testing
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue