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 <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2018-10-11 22:23:53 -07:00
parent 17911efcce
commit 17b6d9f708

View File

@ -53,10 +53,10 @@ sub run {
# being told the system is up to date. # being told the system is up to date.
my $retries = 2; my $retries = 2;
for (my $n = 1; $n < 6; $n++) { 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 # if we see 'apply', we're done here, quit out of the loop
last if (match_has_tag 'desktop_package_tool_update_apply'); last if (check_screen 'desktop_package_tool_update_apply', 1);
# otherwise, we hit uptodate, which is the bug case # otherwise, the refresh button came back - that's the bug
if ($retries == 2) { if ($retries == 2) {
# only record the soft fail on the *first* retry # only record the soft fail on the *first* retry
record_soft_failure "Refresh did not find available update - #1638563. Retrying"; record_soft_failure "Refresh did not find available update - #1638563. Retrying";