desktop_login: tweak password typing so we wait after enter

This makes it so the `wait_still_screen` that comes at the end
of `type_very_safely` happens *after we hit enter*, not after
we type the password but before we hit enter. I'm hoping this
makes the 'set new password at login' more robust on aarch64, it
seems to be failing often.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2020-11-12 11:25:52 -08:00
parent 24c46489a2
commit fc0698ca1c

View File

@ -87,11 +87,9 @@ sub login_user {
if ($method eq "create") { if ($method eq "create") {
# With users that do not have passwords, we need to make an extra round # With users that do not have passwords, we need to make an extra round
# of password typing. # of password typing.
type_very_safely $password; type_very_safely "$password\n";
send_key "ret";
} }
type_very_safely $password; type_very_safely "$password\n";
send_key "ret";
check_desktop if ($args{checklogin}); check_desktop if ($args{checklogin});
wait_still_screen 5; wait_still_screen 5;
} }