Harald Hoyer d1bf89
From 483b1e3aa83c5bd56b2f2c75144b0a8c276d5bec Mon Sep 17 00:00:00 2001
Harald Hoyer d1bf89
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer d1bf89
Date: Mon, 18 Jun 2012 19:13:09 +0200
Harald Hoyer d1bf89
Subject: [PATCH] TEST-20-NFS: add watchdog
Harald Hoyer d1bf89
Harald Hoyer d1bf89
---
Harald Hoyer d1bf89
 test/TEST-20-NFS/server-init.sh |    2 +-
Harald Hoyer d1bf89
 test/TEST-20-NFS/test.sh        |   10 ++++++----
Harald Hoyer d1bf89
 2 files changed, 7 insertions(+), 5 deletions(-)
Harald Hoyer d1bf89
Harald Hoyer d1bf89
diff --git a/test/TEST-20-NFS/server-init.sh b/test/TEST-20-NFS/server-init.sh
Harald Hoyer d1bf89
index 26a2abd..a60a013 100755
Harald Hoyer d1bf89
--- a/test/TEST-20-NFS/server-init.sh
Harald Hoyer d1bf89
+++ b/test/TEST-20-NFS/server-init.sh
Harald Hoyer d1bf89
@@ -31,6 +31,6 @@ dhcpd -cf /etc/dhcpd.conf -lf /var/lib/dhcpd/dhcpd.leases
Harald Hoyer d1bf89
 #sh -i
Harald Hoyer d1bf89
 # Wait forever for the VM to die
Harald Hoyer d1bf89
 echo "Serving NFS mounts"
Harald Hoyer d1bf89
-while sleep 60; do sleep 60; done
Harald Hoyer d1bf89
+while sleep 30; do >/dev/watchdog; done
Harald Hoyer d1bf89
 mount -n -o remount,ro /
Harald Hoyer d1bf89
 poweroff -f
Harald Hoyer d1bf89
diff --git a/test/TEST-20-NFS/test.sh b/test/TEST-20-NFS/test.sh
Harald Hoyer d1bf89
index a6bde0e..ea65c2a 100755
Harald Hoyer d1bf89
--- a/test/TEST-20-NFS/test.sh
Harald Hoyer d1bf89
+++ b/test/TEST-20-NFS/test.sh
Harald Hoyer d1bf89
@@ -18,6 +18,7 @@ run_server() {
Harald Hoyer d1bf89
 	-net nic,macaddr=52:54:00:12:34:56,model=e1000 \
Harald Hoyer d1bf89
 	-net socket,listen=127.0.0.1:12320 \
Harald Hoyer d1bf89
 	-serial $SERIAL \
Harald Hoyer d1bf89
+        -watchdog ib700 -watchdog-action poweroff \
Harald Hoyer d1bf89
 	-kernel /boot/vmlinuz-$KVERSION \
Harald Hoyer d1bf89
 	-append "root=/dev/sda rw quiet console=ttyS0,115200n81 selinux=0" \
Harald Hoyer d1bf89
 	-initrd $TESTDIR/initramfs.server \
Harald Hoyer d1bf89
@@ -53,6 +54,7 @@ client_test() {
Harald Hoyer d1bf89
   	-net nic,macaddr=$mac,model=e1000 \
Harald Hoyer d1bf89
 	-net socket,connect=127.0.0.1:12320 \
Harald Hoyer d1bf89
   	-kernel /boot/vmlinuz-$KVERSION \
Harald Hoyer d1bf89
+        -watchdog ib700 -watchdog-action poweroff \
Harald Hoyer d1bf89
   	-append "$cmdline $DEBUGFAIL rd.debug rd.retry=10 rd.info quiet  ro console=ttyS0,115200n81 selinux=0" \
Harald Hoyer d1bf89
   	-initrd $TESTDIR/initramfs.testing
Harald Hoyer d1bf89
 
Harald Hoyer d1bf89
@@ -307,15 +309,15 @@ test_setup() {
Harald Hoyer d1bf89
 
Harald Hoyer d1bf89
     # Make server's dracut image
Harald Hoyer d1bf89
     $basedir/dracut.sh -l -i $TESTDIR/overlay / \
Harald Hoyer d1bf89
-	-m "dash udev-rules base rootfs-block debug kernel-modules" \
Harald Hoyer d1bf89
-	-d "piix ide-gd_mod ata_piix ext3 sd_mod e1000" \
Harald Hoyer d1bf89
+	-m "dash udev-rules base rootfs-block debug kernel-modules watchdog" \
Harald Hoyer d1bf89
+	-d "piix ide-gd_mod ata_piix ext3 sd_mod e1000 ib700wdt" \
Harald Hoyer d1bf89
 	-f $TESTDIR/initramfs.server $KVERSION || return 1
Harald Hoyer d1bf89
 
Harald Hoyer d1bf89
     # Make client's dracut image
Harald Hoyer d1bf89
     $basedir/dracut.sh -l -i $TESTDIR/overlay / \
Harald Hoyer d1bf89
 	-o "plymouth" \
Harald Hoyer d1bf89
-	-a "debug" \
Harald Hoyer d1bf89
-	-d "piix ide-gd_mod ata_piix sd_mod e1000 nfs sunrpc" \
Harald Hoyer d1bf89
+	-a "debug watchdog" \
Harald Hoyer d1bf89
+	-d "piix ide-gd_mod ata_piix sd_mod e1000 nfs sunrpc ib700wdt" \
Harald Hoyer d1bf89
 	-f $TESTDIR/initramfs.testing $KVERSION || return 1
Harald Hoyer d1bf89
 }
Harald Hoyer d1bf89