Skip to content

Commit

Permalink
Rework installation timeout for Agama
Browse files Browse the repository at this point in the history
  • Loading branch information
lkocman committed Sep 17, 2024
1 parent 48685c3 commit bcfaaec
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 bcfaaec

Please sign in to comment.