From: Ezra Peisach Date: Thu, 21 Feb 2002 00:38:38 +0000 (+0000) Subject: * default.exp (start_kerberos_daemons): In starting the kadmin X-Git-Tag: krb5-1.3-alpha1~870 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b455187ffb3a88ef0337dbf634a38265a2580445;p=krb5.git * default.exp (start_kerberos_daemons): In starting the kadmin daemon, the last line in the log file might read "Seeding random number" for a second. If that is the case, wait three seconds and refetch the last line of the log file to look for the "starting kadmind message" git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14158 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/tests/dejagnu/config/ChangeLog b/src/tests/dejagnu/config/ChangeLog index 05fd9a544..648f5d2f9 100644 --- a/src/tests/dejagnu/config/ChangeLog +++ b/src/tests/dejagnu/config/ChangeLog @@ -1,3 +1,11 @@ +2002-02-20 Ezra Peisach + + * default.exp (start_kerberos_daemons): In starting the kadmin + daemon, the last line in the log file might read "Seeding random + number" for a second. If that is the case, wait three seconds and + refetch the last line of the log file to look for the "starting + kadmind message" + 2002-01-08 Ken Raeburn * default.exp (start_kerberos_daemons): When standalone, delete diff --git a/src/tests/dejagnu/config/default.exp b/src/tests/dejagnu/config/default.exp index 330fa5c04..cd4514d0c 100644 --- a/src/tests/dejagnu/config/default.exp +++ b/src/tests/dejagnu/config/default.exp @@ -1364,7 +1364,16 @@ proc start_kerberos_daemons { standalone } { unset start_save_ktname } - switch -regexp [tail1 $kadmind_lfile] { + set line [tail1 $kadmind_lfile] + switch -regexp $line { + "Seeding random number" { + # Wait a few seconds and get the new line + sleep 3 + set line [tail1 $kadmind_lfile] + } + } + + switch -regexp $line { "cannot initialize network" { if {$standalone} { verbose -log "kadmind failed network init"