be more flexible in handling failures getting root access in test suite
authorKen Raeburn <raeburn@mit.edu>
Thu, 5 Jun 2003 23:43:30 +0000 (23:43 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 5 Jun 2003 23:43:30 +0000 (23:43 +0000)
* 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
src/tests/dejagnu/config/default.exp

index c7f21da60d1f27d5da6e76626168592891cce9e0..beabe48b8fce692c863e3e0cbe1574aae1ad221c 100644 (file)
@@ -1,3 +1,8 @@
+2003-06-05  Ken Raeburn  <raeburn@mit.edu>
+
+       * default.exp (setup_root_shell): Check for "not authorized".  Map
+       eof to unsupported.
+
 2003-06-04  Tom Yu  <tlyu@mit.edu>
 
        * default.exp (setup_root_shell): Don't try to use the procedure
index dee8509ee6ab1bf0faa20ef877fe42d11732f3ca..5f4b5924d8d09580614b9ae96d8add0fa5977042 100644 (file)
@@ -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