projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57be4ab
)
testing.sh: bashisms are eradicated.
author
Denis Vlasenko
<vda.linux@googlemail.com>
Fri, 2 May 2008 09:39:09 +0000
(09:39 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Fri, 2 May 2008 09:39:09 +0000
(09:39 -0000)
By Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn AT axis.com>
testsuite/testing.sh
patch
|
blob
|
history
diff --git
a/testsuite/testing.sh
b/testsuite/testing.sh
index 94e90d77e5c1eb45f0e4d2c3e54260d763087d10..e9338dbc1efcad7de656da7282f8d6a9797aae30 100755
(executable)
--- a/
testsuite/testing.sh
+++ b/
testsuite/testing.sh
@@
-79,7
+79,7
@@
testing()
cmp expected actual >/dev/null 2>/dev/null
if [ $? -ne 0 ]
then
- FAILCOUNT=$
[$FAILCOUNT+1]
+ FAILCOUNT=$
(($FAILCOUNT + 1))
echo "FAIL: $NAME"
[ -n "$VERBOSE" ] && diff -u expected actual
else
@@
-107,7
+107,8
@@
mkchroot()
shift
for i in "$@"
do
- [ "${i:0:1}" == "/" ] || i=$(which $i)
+ #bashism: [ "${i:0:1}" == "/" ] || i=$(which $i)
+ i=$(which $i) # no-op for /bin/prog
[ -f "$dest/$i" ] && continue
if [ -e "$i" ]
then