From: Warren Togami Date: Mon, 15 Jun 2009 20:26:11 +0000 (-0400) Subject: Simple changes to allow test suite to work with dash. X-Git-Tag: 0.1~65 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9f786a9d8f82ab2b0892aa481bb22657e5776121;p=thirdparty%2Fdracut.git Simple changes to allow test suite to work with dash. --- diff --git a/test/TEST-20-NFS/test.sh b/test/TEST-20-NFS/test.sh index 9b1c1ccc2..64bb3562e 100755 --- a/test/TEST-20-NFS/test.sh +++ b/test/TEST-20-NFS/test.sh @@ -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 diff --git a/test/TEST-40-NBD/client-init b/test/TEST-40-NBD/client-init index b0af521d4..d52b16350 100755 --- a/test/TEST-40-NBD/client-init +++ b/test/TEST-40-NBD/client-init @@ -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 diff --git a/test/TEST-40-NBD/test.sh b/test/TEST-40-NBD/test.sh index a70092dad..f05679934 100755 --- a/test/TEST-40-NBD/test.sh +++ b/test/TEST-40-NBD/test.sh @@ -68,7 +68,7 @@ client_test() { opts=${nbdinfo[1]}, while [[ $opts ]]; do - if [[ ${opts%%,*} == $fsopt ]]; then + if [[ ${opts%%,*} = $fsopt ]]; then found=1 break fi