mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-12-22 10:48:30 +00:00
Try hitting enter a few times at GNOME login screen if necessary
Another aarch64 robustness fix...sometimes hitting enter at GDM just doesn't seem to work, let's give it three tries if needed. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
3d8852cb60
commit
9392c66b45
@ -46,8 +46,10 @@ sub run {
|
||||
# GDM 3.24.1 dumps a cursor in the middle of the screen here...
|
||||
mouse_hide;
|
||||
if (get_var("DESKTOP") eq 'gnome') {
|
||||
# we have to hit enter to get the password dialog
|
||||
send_key "ret";
|
||||
# we have to hit enter to get the password dialog, and it
|
||||
# doesn't always work for some reason so just try it three
|
||||
# times
|
||||
send_key_until_needlematch("graphical_login_input", "ret", 3, 5);
|
||||
}
|
||||
assert_screen "graphical_login_input";
|
||||
# seems like we often double-type on aarch64 if we start right
|
||||
|
@ -60,8 +60,10 @@ sub run {
|
||||
# GDM 3.24.1 dumps a cursor in the middle of the screen here...
|
||||
mouse_hide;
|
||||
if (get_var("DESKTOP") eq 'gnome') {
|
||||
# we have to hit enter to get the password dialog
|
||||
send_key "ret";
|
||||
# we have to hit enter to get the password dialog, and it
|
||||
# doesn't always work for some reason so just try it three
|
||||
# times
|
||||
send_key_until_needlematch("graphical_login_input", "ret", 3, 5);
|
||||
}
|
||||
assert_screen "graphical_login_input";
|
||||
type_very_safely get_var("USER_PASSWORD", "weakpassword");
|
||||
|
Loading…
Reference in New Issue
Block a user