From 1fd0097d1d04b863280d7e6b45c8b6c7fb13423e Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Mon, 17 Dec 2018 12:19:44 -0800 Subject: [PATCH] Simplify an 'if >F26' thing We don't care about anything older than 27 any more. Signed-off-by: Adam Williamson --- tests/desktop_update_graphical.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/desktop_update_graphical.pm b/tests/desktop_update_graphical.pm index 638681cb..b7a8fd4b 100644 --- a/tests/desktop_update_graphical.pm +++ b/tests/desktop_update_graphical.pm @@ -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;