* default.exp (start_kerberos_daemons): In starting the kadmin
authorEzra Peisach <epeisach@mit.edu>
Thu, 21 Feb 2002 00:38:38 +0000 (00:38 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 21 Feb 2002 00:38:38 +0000 (00:38 +0000)
        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

src/tests/dejagnu/config/ChangeLog
src/tests/dejagnu/config/default.exp

index 05fd9a544ea7b5b23d7a7ad66be3fb52863fca41..648f5d2f9dc268477d64941c1c3d6bfb05347535 100644 (file)
@@ -1,3 +1,11 @@
+2002-02-20  Ezra Peisach  <epeisach@mit.edu>
+
+       * 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  <raeburn@mit.edu>
 
        * default.exp (start_kerberos_daemons): When standalone, delete
index 330fa5c040d807e8338974261a2975a2877a8137..cd4514d0c3b20cd3fa29933b2336b4e0f2a305f1 100644 (file)
@@ -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"