followed by no unrecognized errors and then eof, report it as an unsupported
test.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15279
dc483132-0cff-0310-8789-
dd5450dbe970
+2003-03-14 Ken Raeburn <raeburn@mit.edu>
+
+ * default.exp (setup_root_shell): If we get connection refused
+ messages, followed by no unrecognized errors and then eof, report
+ it as an unsupported test.
+
2003-02-04 Tom Yu <tlyu@mit.edu>
* default.exp (start_kerberos_daemons): Use correct argument to
set rlogin_pid [exp_pid]
set old_timeout $timeout
set timeout 300
+ set got_refused 0
expect {
-re {connect to address [0-9a-fA-F.:]*: Connection refused} {
note $expect_out(buffer)
+ set got_refused 1
exp_continue
}
-re "word:|erberos rlogin failed|ection refused|ection reset by peer" {
return 0
}
eof {
- perror "eof from rlogin $hostname -l root"
+ if $got_refused {
+ # reported some errors, continued, and failed
+ note "$testname test requires ability to log in as root"
+ unsupported $testname
+ } else {
+ # unknown problem?
+ perror "eof from rlogin $hostname -l root"
+ }
stop_root_shell
set timeout $old_timeout
catch "expect_after"