From 8f0ce7af67b90423c623083cc2835d07713f67af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sat, 18 Oct 2008 23:56:30 +0000 Subject: [PATCH] allow waiting for a user selected string git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23938 ec53bebd-3082-4978-b11e-865c3cabbd6b --- tests/kdc/wait-kdc.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/kdc/wait-kdc.sh b/tests/kdc/wait-kdc.sh index c68136e4c..06fc8a47f 100644 --- a/tests/kdc/wait-kdc.sh +++ b/tests/kdc/wait-kdc.sh @@ -36,6 +36,7 @@ name=${1:-KDC} log=${2:-messages.log} +waitfor=${3:-${name} started} t=0 waitsec=20 @@ -46,7 +47,7 @@ while true ; do t=`expr ${t} + 2` sleep 2 echo "Have waited $t seconds" - if tail -30 ${log} | grep "${name} started" > /dev/null; then + if tail -30 ${log} | grep "${waitfor}" > /dev/null; then break fi if tail -30 ${log} | grep "No sockets" ; then