From 17b6d9f7080ee4cec2396dab13b2fd22ac17b3bc Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 11 Oct 2018 22:23:53 -0700 Subject: [PATCH] Tweak the workaround to work for F27 too On F27 we don't get a 'Software is up to date' screen because there's an upgrade available. Let's work with the refresh button instead. Signed-off-by: Adam Williamson --- tests/desktop_update_graphical.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/desktop_update_graphical.pm b/tests/desktop_update_graphical.pm index 9094f819..120d02d9 100644 --- a/tests/desktop_update_graphical.pm +++ b/tests/desktop_update_graphical.pm @@ -53,10 +53,10 @@ sub run { # being told the system is up to date. my $retries = 2; for (my $n = 1; $n < 6; $n++) { - if (check_screen ['desktop_package_tool_update_apply', 'desktop_package_tool_uptodate'], 120) { + if (check_screen ['desktop_package_tool_update_apply', 'desktop_package_tool_update_refresh'], 120) { # if we see 'apply', we're done here, quit out of the loop - last if (match_has_tag 'desktop_package_tool_update_apply'); - # otherwise, we hit uptodate, which is the bug case + last if (check_screen 'desktop_package_tool_update_apply', 1); + # otherwise, the refresh button came back - that's the bug if ($retries == 2) { # only record the soft fail on the *first* retry record_soft_failure "Refresh did not find available update - #1638563. Retrying";