From: Howard Chu Date: Fri, 30 Sep 2011 10:34:03 +0000 (-0700) Subject: ITS#6979 avoid bash-ism X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=976b4edc4cd815fa243b3cf9c6f3fea9b17a87b3;p=openldap ITS#6979 avoid bash-ism --- diff --git a/tests/scripts/test062-config-delete b/tests/scripts/test062-config-delete index 0cb103953b..82608ac5e8 100755 --- a/tests/scripts/test062-config-delete +++ b/tests/scripts/test062-config-delete @@ -106,7 +106,7 @@ rm -f $RCOUT ( $LDAPSEARCH -D cn=config -H $URI1 -y $CONFIGPWF -bcn=config -E \!sync=rp >/dev/null 2>&1 RC=$? - touch $RCOUT + echo $RC > $RCOUT exit $RC ) & @@ -137,10 +137,10 @@ done if test -f "$RCOUT" ; then wait $SEARCHPID - SEARCHRC=$? + SEARCHRC=`cat $RCOUT` echo "Checking return code of backgrounded RefreshAndPersist search ..." if test $SEARCHRC != 52 ; then - echo "Error: Backgrounded ldapsearch did return the wrong error code: $SEARCHRC" + echo "Error: Backgrounded ldapsearch returned the wrong error code: $SEARCHRC" RC=1 else echo "Exit code correct."