Simplify an 'if >F26' thing

We don't care about anything older than 27 any more.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2018-12-17 12:19:44 -08:00
parent d1e7b89efd
commit 1fd0097d1d

View File

@ -81,9 +81,7 @@ sub run {
# logged in (but don't fail if it doesn't as we're not testing
# that)
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 'tab';
send_key 'ret';
}
boot_to_login_screen;