From: Ken Raeburn Date: Thu, 23 Jan 2003 17:42:46 +0000 (+0000) Subject: * default.exp (start_kerberos_daemons): Record more information when "tail -f" X-Git-Tag: krb5-1.3-alpha1~145 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7995bc40d8aa2bcc779da0a4782a9a5fd6dd1d4d;p=krb5.git * default.exp (start_kerberos_daemons): Record more information when "tail -f" doesn't show the mark written to the log file. Look for and discard non-matching lines. (setup_root_shell): Ignore the message displayed by rlogin when a connection is refused to one address but other addresses are available. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15132 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/tests/dejagnu/config/ChangeLog b/src/tests/dejagnu/config/ChangeLog index b37eace92..ee881c6b3 100644 --- a/src/tests/dejagnu/config/ChangeLog +++ b/src/tests/dejagnu/config/ChangeLog @@ -1,3 +1,12 @@ +2003-01-23 Ken Raeburn + + * default.exp (start_kerberos_daemons): Record more information + when "tail -f" doesn't show the mark written to the log file. + Look for and discard non-matching lines. + (setup_root_shell): Ignore the message displayed by rlogin when + a connection is refused to one address but other addresses are + available. + 2002-11-08 Tom Yu * default.exp: Add (disabled) debugging code for catching leaking diff --git a/src/tests/dejagnu/config/default.exp b/src/tests/dejagnu/config/default.exp index 6ee06097d..aecf23e8b 100644 --- a/src/tests/dejagnu/config/default.exp +++ b/src/tests/dejagnu/config/default.exp @@ -1304,6 +1304,7 @@ proc start_kerberos_daemons { standalone } { global kadmind_spawn_id global tmppwd global env + global timeout if ![setup_kerberos_db 0] { return 0 @@ -1342,12 +1343,13 @@ proc start_kerberos_daemons { standalone } { expect { -i $tailf_spawn_id -ex "$markstr\r\n" { } + -re "\[^\r\n\]*\r\n" { exp_continue } timeout { if {$standalone} { - verbose -log "tail -f timed out looking for mark" + verbose -log "tail -f timed out ($timeout sec) looking for mark in kdc log" fail "krb5kdc" } else { - perror "krbkdc tail -f timed out looking for mark" + perror "krbkdc tail -f timed out ($timeout sec) looking for mark in kdc log" } stop_kerberos_daemons exec kill $tailf_pid @@ -1418,12 +1420,13 @@ proc start_kerberos_daemons { standalone } { expect { -i $tailf_spawn_id -ex "$markstr\r\n" { } + -re "\[^\r\n\]*\r\n" { exp_continue } timeout { if {$standalone} { - verbose -log "tail -f timed out looking for mark" + verbose -log "tail -f timed out ($timeout sec) looking for mark in kadmind log" fail "kadmind" } else { - perror "kadmind tail -f timed out looking for mark" + perror "kadmind tail -f timed out ($timeout sec) looking for mark in kadmind log" } stop_kerberos_daemons exec kill $tailf_pid @@ -2233,6 +2236,10 @@ proc setup_root_shell { testname } { set timeout 300 expect { + -re {connect to address [0-9a-fA-F.:]*: Connection refused} { + note $expect_out(buffer) + exp_continue + } -re "word:|erberos rlogin failed|ection refused|ection reset by peer" { note "$testname test requires ability to rlogin as root" unsupported "$testname"