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:
Adam Williamson 2020-11-12 10:20:34 -08:00
parent 3d8852cb60
commit 9392c66b45
2 changed files with 8 additions and 4 deletions

View File

@ -46,8 +46,10 @@ sub run {
# GDM 3.24.1 dumps a cursor in the middle of the screen here... # GDM 3.24.1 dumps a cursor in the middle of the screen here...
mouse_hide; mouse_hide;
if (get_var("DESKTOP") eq 'gnome') { if (get_var("DESKTOP") eq 'gnome') {
# we have to hit enter to get the password dialog # we have to hit enter to get the password dialog, and it
send_key "ret"; # 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"; assert_screen "graphical_login_input";
# seems like we often double-type on aarch64 if we start right # seems like we often double-type on aarch64 if we start right

View File

@ -60,8 +60,10 @@ sub run {
# GDM 3.24.1 dumps a cursor in the middle of the screen here... # GDM 3.24.1 dumps a cursor in the middle of the screen here...
mouse_hide; mouse_hide;
if (get_var("DESKTOP") eq 'gnome') { if (get_var("DESKTOP") eq 'gnome') {
# we have to hit enter to get the password dialog # we have to hit enter to get the password dialog, and it
send_key "ret"; # 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"; assert_screen "graphical_login_input";
type_very_safely get_var("USER_PASSWORD", "weakpassword"); type_very_safely get_var("USER_PASSWORD", "weakpassword");