]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
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 9b1c1ccc22eb5c6f8fa551fbad23ebab19b9de77..64bb3562e7730e13d1c39d1c51923113eaa53ed2 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 b0af521d4aff7d240d8ac05cca9c1de935e14149..d52b163507156ee49d3298bf517c8341ad7ad5c4 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 a70092dadafb3e77034e085556da90fb82049717..f0567993480db938710b4a68912c962cf7b468a4 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