]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
TEST-40-NBD/test.sh: source reformat
authorHarald Hoyer <harald@redhat.com>
Thu, 11 Aug 2011 12:24:23 +0000 (14:24 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 11 Aug 2011 13:36:29 +0000 (15:36 +0200)
test/TEST-40-NBD/test.sh

index 3b1bf0e749dbd3812eff8ba7b2c64d35dd1368da..675ffd436fe2fd821ade38397d2dfcd3f845af87 100755 (executable)
@@ -1,10 +1,12 @@
 #!/bin/bash
+# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
+# ex: ts=8 sw=4 sts=4 et filetype=sh
 TEST_DESCRIPTION="root filesystem on NBD"
 
 KVERSION=${KVERSION-$(uname -r)}
 
 # Uncomment this to debug failures
-#DEBUGFAIL="rd.shell"
+#DEBUGFAIL="rd.shell rd.retry=10"
 #SERIAL="udp:127.0.0.1:9999"
 SERIAL="null"
 
@@ -98,35 +100,34 @@ client_run() {
 
     # The default is ext3,errors=continue so use that to determine
     # if our options were parsed and used
-
-     client_test "NBD root=nbd:IP:port" 52:54:00:12:34:00 \
+    client_test "NBD root=nbd:IP:port" 52:54:00:12:34:00 \
        "root=nbd:192.168.50.1:2000" || return 1
 
-     client_test "NBD root=nbd:IP:port:fstype" 52:54:00:12:34:00 \
+    client_test "NBD root=nbd:IP:port:fstype" 52:54:00:12:34:00 \
        "root=nbd:192.168.50.1:2000:ext2" ext2 || return 1
 
-     client_test "NBD root=nbd:IP:port::fsopts" 52:54:00:12:34:00 \
+    client_test "NBD root=nbd:IP:port::fsopts" 52:54:00:12:34:00 \
        "root=nbd:192.168.50.1:2000::errors=panic" \
        ext3 errors=panic || return 1
 
-     client_test "NBD root=nbd:IP:port:fstype:fsopts" 52:54:00:12:34:00 \
+    client_test "NBD root=nbd:IP:port:fstype:fsopts" 52:54:00:12:34:00 \
        "root=nbd:192.168.50.1:2000:ext2:errors=panic" \
        ext2 errors=panic || return 1
 
-     client_test "NBD Bridge root=nbd:IP:port:fstype:fsopts" 52:54:00:12:34:00 \
+    client_test "NBD Bridge root=nbd:IP:port:fstype:fsopts" 52:54:00:12:34:00 \
        "root=nbd:192.168.50.1:2000:ext2:errors=panic bridge" \
        ext2 errors=panic || return 1
 
      # There doesn't seem to be a good way to validate the NBD options, so
      # just check that we don't screw up the other options
 
-     client_test "NBD root=nbd:IP:port:::NBD opts" 52:54:00:12:34:00 \
+    client_test "NBD root=nbd:IP:port:::NBD opts" 52:54:00:12:34:00 \
        "root=nbd:192.168.50.1:2000:::bs=2048" || return 1
 
-     client_test "NBD root=nbd:IP:port:fstype::NBD opts" 52:54:00:12:34:00 \
+    client_test "NBD root=nbd:IP:port:fstype::NBD opts" 52:54:00:12:34:00 \
        "root=nbd:192.168.50.1:2000:ext2::bs=2048" ext2 || return 1
 
-     client_test "NBD root=nbd:IP:port:fstype:fsopts:NBD opts" \
+    client_test "NBD root=nbd:IP:port:fstype:fsopts:NBD opts" \
        52:54:00:12:34:00 \
        "root=nbd:192.168.50.1:2000:ext2:errors=panic:bs=2048" \
        ext2 errors=panic || return 1