mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-29 08:26:27 +00:00
Fix desktop_update_graphical for recent F27+ GNOME change
The default action on the reboot confirmation dialog changed from Reboot to Cancel, so when we hit enter, we just cancel the reboot. Tweak this to hit tab on F27+ (but not <F26, so update tests continue to work too).
This commit is contained in:
parent
4610408963
commit
4323d8f533
@ -67,6 +67,9 @@ sub run {
|
|||||||
# logged in (but don't fail if it doesn't as we're not testing
|
# logged in (but don't fail if it doesn't as we're not testing
|
||||||
# that)
|
# that)
|
||||||
if (check_screen 'gnome_reboot_confirm', 15) {
|
if (check_screen 'gnome_reboot_confirm', 15) {
|
||||||
|
# on F27+, default is Cancel, earlier, default is Restart
|
||||||
|
my $version = lc(get_var("VERSION"));
|
||||||
|
send_key 'tab' if ($version eq 'rawhide' || $version > 26);
|
||||||
send_key 'ret';
|
send_key 'ret';
|
||||||
}
|
}
|
||||||
boot_to_login_screen;
|
boot_to_login_screen;
|
||||||
|
Loading…
Reference in New Issue
Block a user