read_password functions still need to be updated.
* api.2/init-v2.exp (test106): Make regexp more forgiving of
variant password prompts.
* api.0/init.exp (test7, test22, test225): Make regexp more
forgiving of variant password prompts.
ticket: 1217
status: open
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14932
dc483132-0cff-0310-8789-
dd5450dbe970
+2002-10-18 Tom Yu <tlyu@mit.edu>
+
+ * api.2/init-v2.exp (test106): Make regexp more forgiving of
+ variant password prompts.
+
+ * api.0/init.exp (test7, test22, test225): Make regexp more
+ forgiving of variant password prompts.
+
2002-09-15 Tom Yu <tlyu@mit.edu>
* api.0/chpass-principal.exp:
expect {
{Enter password:} { }
- -re "key:$" { }
+ -re "\n\[^\n\]+key:\[^\n\]*$" { }
eof {
fail "$test: eof instead of password prompt"
api_exit
}]
send "\n"
expect {
- -re ":$" { set prompting 1}
+ -re "\n\[^\n\]+:\[^\n\]*$" { set prompting 1}
-re "\nOK .*$prompt$" { fail "$test: premature success" }
-re "\nERROR .*$prompt$" { fail "$test: premature failure" }
timeout { fail "$test: timeout" }
}]
send "\n"
expect {
- -re ":$" { set prompting 1}
+ -re "\n\[^\n\]+:\[^\n\]*$" { set prompting 1}
-re "\nOK .*$prompt$" { fail "$test: premature success" }
-re "\nERROR .*$prompt$" { fail "$test: premature failure" }
timeout { fail "$test: timeout" }
test "init 106"
proc test106 {} {
global test prompt
-
+
+ set prompting 0
send [string trim {
kadm5_init admin admin $KADM5_ADMIN_SERVICE \
[config_params {KADM5_CONFIG_MKEY_FROM_KBD} 1] \
}]
send "\n"
expect {
- -re ":$" { set prompting 1}
+ -re "\n\[^\n\]+:\[^\n\]*$" { set prompting 1}
-re "\nOK .*$prompt$" { fail "$test: premature success" }
-re "\nERROR .*$prompt$" { fail "$test: premature failure" }
timeout { fail "$test: timeout" }