diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-02 09:39:09 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-02 09:39:09 +0000 |
commit | 2dea01ca11b084641d912de8632c42df0d2734cd (patch) | |
tree | 2e0e64d3567742ca5ffeb07bc340a4df6d75c2d0 | |
parent | 57be4abcf845a9f61b8020a1a4c00abdd79c2d1e (diff) | |
download | busybox-w32-2dea01ca11b084641d912de8632c42df0d2734cd.tar.gz busybox-w32-2dea01ca11b084641d912de8632c42df0d2734cd.tar.bz2 busybox-w32-2dea01ca11b084641d912de8632c42df0d2734cd.zip |
testing.sh: bashisms are eradicated.
By Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn AT axis.com>
-rwxr-xr-x | testsuite/testing.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuite/testing.sh b/testsuite/testing.sh index 94e90d77e..e9338dbc1 100755 --- a/testsuite/testing.sh +++ b/testsuite/testing.sh | |||
@@ -79,7 +79,7 @@ testing() | |||
79 | cmp expected actual >/dev/null 2>/dev/null | 79 | cmp expected actual >/dev/null 2>/dev/null |
80 | if [ $? -ne 0 ] | 80 | if [ $? -ne 0 ] |
81 | then | 81 | then |
82 | FAILCOUNT=$[$FAILCOUNT+1] | 82 | FAILCOUNT=$(($FAILCOUNT + 1)) |
83 | echo "FAIL: $NAME" | 83 | echo "FAIL: $NAME" |
84 | [ -n "$VERBOSE" ] && diff -u expected actual | 84 | [ -n "$VERBOSE" ] && diff -u expected actual |
85 | else | 85 | else |
@@ -107,7 +107,8 @@ mkchroot() | |||
107 | shift | 107 | shift |
108 | for i in "$@" | 108 | for i in "$@" |
109 | do | 109 | do |
110 | [ "${i:0:1}" == "/" ] || i=$(which $i) | 110 | #bashism: [ "${i:0:1}" == "/" ] || i=$(which $i) |
111 | i=$(which $i) # no-op for /bin/prog | ||
111 | [ -f "$dest/$i" ] && continue | 112 | [ -f "$dest/$i" ] && continue |
112 | if [ -e "$i" ] | 113 | if [ -e "$i" ] |
113 | then | 114 | then |