more randomconfig testsuite fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/testsuite/testing.sh b/testsuite/testing.sh
index 22c640f..65a0f65 100755
--- a/testsuite/testing.sh
+++ b/testsuite/testing.sh
@@ -54,14 +54,14 @@
optional()
{
- option=`echo ":$OPTIONFLAGS:" | grep ":$1:"`
- # Not set?
- if [ -z "$1" ] || [ -z "$OPTIONFLAGS" ] || [ ${#option} -ne 0 ]
- then
- SKIP=
- return
- fi
- SKIP=1
+ SKIP=
+ while test "$1"; do
+ if test x"${OPTIONFLAGS/*:$1:*/y}" != x"y"; then
+ SKIP=1
+ return
+ fi
+ shift
+ done
}
# The testing function