TEST-40-NBD: add watchdog

master
Harald Hoyer 2012-06-29 11:57:02 +02:00
parent 67ab4f7718
commit 6571cd4073
2 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,5 @@
#!/bin/sh
>/dev/watchdog
export PATH=/sbin:/bin:/usr/sbin:/usr/bin
exec >/dev/console 2>&1
while read dev fs fstype opts rest; do
@ -13,5 +14,7 @@ export PS1='nbdclient-test:\w\$ '
stty sane
echo "made it to the rootfs! Powering down."
#sh -i
>/dev/watchdog
mount -n -o remount,ro / &> /dev/null
>/dev/watchdog
poweroff -f

View File

@ -338,8 +338,8 @@ test_setup() {

sudo $basedir/dracut.sh -l -i $TESTDIR/overlay / \
-o "plymouth" \
-a "debug" \
-d "piix ide-gd_mod ata_piix ext2 ext3 sd_mod e1000" \
-a "debug watchdog" \
-d "piix ide-gd_mod ata_piix ext2 ext3 sd_mod e1000 ib700wdt" \
-f $TESTDIR/initramfs.testing $KVERSION || return 1
}