]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
test/iSCSI: fixed test script
authorHarald Hoyer <harald@redhat.com>
Wed, 3 Feb 2010 15:42:43 +0000 (16:42 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 3 Feb 2010 15:42:43 +0000 (16:42 +0100)
test/TEST-30-ISCSI/test.sh

index 9f28942acf98a414065ad1c14dc6f629c76e6568..008aa3d0bdd320e22f69fe26f2aeb5ae1aeeebc1 100755 (executable)
@@ -37,7 +37,7 @@ run_client() {
        -net nic,macaddr=52:54:00:12:34:00,model=e1000 \
        -net socket,mcast=230.0.0.1:1235 \
        -kernel /boot/vmlinuz-$KVERSION \
-       -append "root=dhcp rw quiet rdinitdebug rdinfo rdnetdebug console=ttyS0,115200n81 selinux=0 rdshell $DEBUGFAIL" \
+       -append "root=dhcp rw quiet rdinitdebug rdinfo rdnetdebug console=ttyS0,115200n81 selinux=0 $DEBUGFAIL" \
        -initrd initramfs.testing
     grep -m 1 -q iscsi-OK client.img || return 1
 }
@@ -48,10 +48,12 @@ test_run() {
        return 1
     fi
     run_client
+    ret=$?
     if [[ -s server.pid ]]; then
        sudo kill -TERM $(cat server.pid)
        rm -f server.pid
     fi
+    return $ret
 }
 
 test_setup() {