mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-22 05:01:25 +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...
|
# 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
|
||||||
|
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user