From: Harald Hoyer Date: Thu, 11 Aug 2011 12:24:23 +0000 (+0200) Subject: TEST-40-NBD/test.sh: source reformat X-Git-Tag: 012~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bcf94bba99ff5bdc4e055e531167293db1c74878;p=thirdparty%2Fdracut.git TEST-40-NBD/test.sh: source reformat --- diff --git a/test/TEST-40-NBD/test.sh b/test/TEST-40-NBD/test.sh index 3b1bf0e74..675ffd436 100755 --- a/test/TEST-40-NBD/test.sh +++ b/test/TEST-40-NBD/test.sh @@ -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