Simple changes to allow test suite to work with dash.
authorWarren Togami <wtogami@redhat.com>
Mon, 15 Jun 2009 20:26:11 +0000 (16:26 -0400)
committerWarren Togami <wtogami@redhat.com>
Mon, 15 Jun 2009 20:26:11 +0000 (16:26 -0400)
test/TEST-20-NFS/test.sh
test/TEST-40-NBD/client-init
test/TEST-40-NBD/test.sh

index 9b1c1cc..64bb356 100755 (executable)
@@ -66,14 +66,14 @@ client_test() {
 
     found=0
     expected=1
-    if [[ ${check_opt:0:1} == '-' ]]; then
+    if [[ ${check_opt:0:1} = '-' ]]; then
        expected=0
        check_opt=${check_opt:1}
     fi
        
     opts=${nfsinfo[2]},
     while [[ $opts ]]; do
-       if [[ ${opts%%,*} == $check_opt ]]; then
+       if [[ ${opts%%,*} = $check_opt ]]; then
            found=1
            break
        fi
index b0af521..d52b163 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 exec >/dev/console 2>&1
 while read dev fs fstype opts rest; do
-    [ "$dev" == "rootfs" ] && continue
+    [ "$dev" = "rootfs" ] && continue
     [ "$fs" != "/" ] && continue
     echo "nbd-OK $fstype $opts" >/dev/sda
     break
index a70092d..f056799 100755 (executable)
@@ -68,7 +68,7 @@ client_test() {
 
     opts=${nbdinfo[1]},
     while [[ $opts ]]; do
-       if [[ ${opts%%,*} == $fsopt ]]; then
+       if [[ ${opts%%,*} = $fsopt ]]; then
            found=1
            break
        fi