From 8f52968d9757173dff3ecb72fb8daeb00791f738 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 5 Jun 2003 23:43:30 +0000 Subject: [PATCH] be more flexible in handling failures getting root access in test suite * default.exp (setup_root_shell): Check for "not authorized". Map eof to unsupported. ticket: new target_version: 1.3 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15582 dc483132-0cff-0310-8789-dd5450dbe970 --- src/tests/dejagnu/config/ChangeLog | 5 +++++ src/tests/dejagnu/config/default.exp | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/tests/dejagnu/config/ChangeLog b/src/tests/dejagnu/config/ChangeLog index c7f21da60..beabe48b8 100644 --- a/src/tests/dejagnu/config/ChangeLog +++ b/src/tests/dejagnu/config/ChangeLog @@ -1,3 +1,8 @@ +2003-06-05 Ken Raeburn + + * default.exp (setup_root_shell): Check for "not authorized". Map + eof to unsupported. + 2003-06-04 Tom Yu * default.exp (setup_root_shell): Don't try to use the procedure diff --git a/src/tests/dejagnu/config/default.exp b/src/tests/dejagnu/config/default.exp index dee8509ee..5f4b5924d 100644 --- a/src/tests/dejagnu/config/default.exp +++ b/src/tests/dejagnu/config/default.exp @@ -2223,7 +2223,7 @@ proc setup_root_shell { testname } { set got_refused 1 exp_continue } - -re "word:|erberos rlogin failed|ection refused|ection reset by peer" { + -re "word:|erberos rlogin failed|ection refused|ection reset by peer|not authorized" { note "$testname test requires ability to rlogin as root" unsupported "$testname" set timeout $old_timeout @@ -2260,7 +2260,10 @@ proc setup_root_shell { testname } { unsupported $testname } else { # unknown problem? - perror "eof from rlogin $hostname -l root" +# perror "eof from rlogin $hostname -l root" + note "eof (and unrecognized messages?) from rlogin $hostname -l root" + note "$testname test requires ability to log in as root" + unsupported $testname } stop_root_shell set timeout $old_timeout -- 2.26.2