Skip to content

Commit

Permalink
Merge pull request #20208 from lkocman/agama_timeout
Browse files Browse the repository at this point in the history
Rework installation timeout for Agama
  • Loading branch information
lkocman authored Sep 17, 2024
2 parents cef2f4b + d322b06 commit 223fa51
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions tests/installation/agama.pm
Original file line number Diff line number Diff line change
Expand Up @@ -166,20 +166,14 @@ sub run {
# BUG tracker: https://github.com/openSUSE/agama/issues/1474
# copied from await_install.pm
my $timeout = 2400; # 40 minutes timeout for installation process
while (1) {
die "timeout ($timeout) hit during await_install" if $timeout <= 0;
my $ret = check_screen 'agama-install-in-progress', 30;
sleep 30;
# Await installation with a timeout
while ($timeout > 0) {
my $ret = check_screen('agama-congratulations', 30);
$timeout -= 30;
diag("left total await_install timeout: $timeout");
if (!$ret) {
# Handle any error dialogs that could happen
send_key "down"; # ensure screen doesn't get black shortly after we hit congratulations
last;
}
last if $ret;
die "timeout ($timeout) hit during await_install" if $timeout <= 0;
}
# Let's end at agama-congratulations screens
assert_screen('agama-congratulations');
}

=head2 post_fail_hook
Expand Down

0 comments on commit 223fa51

Please sign in to comment.