TEST-40-NBD: add watchdog
authorHarald Hoyer <harald@redhat.com>
Fri, 29 Jun 2012 09:57:02 +0000 (11:57 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 29 Jun 2012 10:51:13 +0000 (12:51 +0200)
test/TEST-40-NBD/client-init.sh
test/TEST-40-NBD/test.sh

index eb65b76..fcc28c0 100755 (executable)
@@ -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
index 70401e3..f5465b6 100755 (executable)
@@ -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
 }