From 8e3aff0ce03cbc44b2fa80fb62fa2378a5212a5a Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 10 May 2010 11:00:11 +0200 Subject: more randomconfig testsuite fixes Signed-off-by: Denys Vlasenko --- testsuite/testing.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'testsuite/testing.sh') diff --git a/testsuite/testing.sh b/testsuite/testing.sh index 22c640faf..65a0f6529 100755 --- a/testsuite/testing.sh +++ b/testsuite/testing.sh @@ -54,14 +54,14 @@ test x"$ECHO" != x"" || { 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 -- cgit v1.2.3