aboutsummaryrefslogtreecommitdiff
path: root/testsuite/testing.sh
diff options
context:
space:
mode:
authorMichael Tokarev <mjt@tls.msk.ru>2013-11-10 22:01:38 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-11-10 22:06:06 +0100
commitafa63b2dcdc9b9d0183ffd84599ea5d4ad94d639 (patch)
treeaf1b15bd42d42ee5be891983d86532e6e41c7ab8 /testsuite/testing.sh
parent5e63776212f8fab4fba08ab2b99dd5241f0c3880 (diff)
downloadbusybox-w32-afa63b2dcdc9b9d0183ffd84599ea5d4ad94d639.tar.gz
busybox-w32-afa63b2dcdc9b9d0183ffd84599ea5d4ad94d639.tar.bz2
busybox-w32-afa63b2dcdc9b9d0183ffd84599ea5d4ad94d639.zip
fix bashisms in testsuite/
These places use ${var/search/replace}, $((n++) and `type -p' constructs which are not-so-standard. Replace with equivalent constructs. Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'testsuite/testing.sh')
-rw-r--r--testsuite/testing.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/testsuite/testing.sh b/testsuite/testing.sh
index e7e64e58b..f5b756947 100644
--- a/testsuite/testing.sh
+++ b/testsuite/testing.sh
@@ -56,10 +56,10 @@ optional()
56{ 56{
57 SKIP= 57 SKIP=
58 while test "$1"; do 58 while test "$1"; do
59 if test x"${OPTIONFLAGS/*:$1:*/y}" != x"y"; then 59 case "${OPTIONFLAGS}" in
60 SKIP=1 60 *:$1:*) ;;
61 return 61 *) SKIP=1; return ;;
62 fi 62 esac
63 shift 63 shift
64 done 64 done
65} 65}