From 1e4060149a6015b0364706486353151de7bb667a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 10 Oct 2006 10:37:21 +0000 Subject: [PATCH] use wait-kdc.sh script git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18397 ec53bebd-3082-4978-b11e-865c3cabbd6b --- tests/kdc/check-digest.in | 6 +++--- tests/kdc/check-kdc.in | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/kdc/check-digest.in b/tests/kdc/check-digest.in index f2f3c0ab9..5e7027ed8 100644 --- a/tests/kdc/check-digest.in +++ b/tests/kdc/check-digest.in @@ -88,10 +88,10 @@ echo $password > ${objdir}/foopassword echo Starting kdc ${kdc} & kdcpid=$! -sleep 20 -if tail -1 messages.log | grep "No sockets" ; then - echo "The KDC failed to bind to any sockets, another KDC running ?" +sh ${srcdir}/wait-kdc.sh +if [ "$?" != 0 ] ; then + kill ${kdcpid} exit 1 fi diff --git a/tests/kdc/check-kdc.in b/tests/kdc/check-kdc.in index 049e9b773..7c53f3a66 100644 --- a/tests/kdc/check-kdc.in +++ b/tests/kdc/check-kdc.in @@ -129,10 +129,10 @@ echo foo > ${objdir}/foopassword echo Starting kdc ${kdc} & kdcpid=$! -sleep 20 -if tail -1 messages.log | grep "No sockets" ; then - echo "The KDC failed to bind to any sockets, another KDC running ?" +sh ${srcdir}/wait-kdc.sh +if [ "$?" != 0 ] ; then + kill ${kdcpid} exit 1 fi