From 331ea001ac2493feddd139e85124ae2bc01d0733 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 29 Dec 2004 21:20:57 +0000 Subject: [PATCH] Fail if proxy cannot be started. --- tests/scripts/test020-proxycache | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/scripts/test020-proxycache b/tests/scripts/test020-proxycache index 633e4a464d..c4779f33bf 100755 --- a/tests/scripts/test020-proxycache +++ b/tests/scripts/test020-proxycache @@ -94,6 +94,12 @@ for i in 0 1 2 3 4 5; do sleep 5 done +if test $RC != 0 ; then + echo "ldapsearch failed ($RC)!" + test $KILLSERVERS != no && kill -HUP $KILLPIDS + exit $RC +fi + echo "Making queries on the proxy cache..." echo "Query 1: filter:(sn=Jon) attrs: all" $LDAPSEARCH -x -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \ -- 2.39.2