mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-22 21:21:30 +00:00
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:
parent
24c46489a2
commit
fc0698ca1c
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user