Skip to content

Commit

Permalink
Add TIMEOUT_SCALE on installation steps
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarocarvajald committed Aug 12, 2019
1 parent bb1eda3 commit 600fe71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/installsummarystep.pm
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ sub accept3rdparty {

sub accept_changes_with_3rd_party_repos {
my ($self) = @_;
my $timeout = 30 * get_var('TIMEOUT_SCALE', 1); # Default timeout
if (check_var('VIDEOMODE', 'text')) {
send_key $cmd{accept};
accept3rdparty;
Expand All @@ -28,7 +29,7 @@ sub accept_changes_with_3rd_party_repos {
send_key $cmd{ok};
accept3rdparty;
}
assert_screen 'inst-overview';
assert_screen 'inst-overview', $timeout;
}

1;
2 changes: 2 additions & 0 deletions tests/installation/await_install.pm
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ sub run {
$timeout *= 2 if check_var_array('PATTERNS', 'all');
# multipath installations seem to take longer (failed some time)
$timeout *= 2 if check_var('MULTIPATH', 1);
# Scale timeout
$timeout *= get_var('TIMEOUT_SCALE', 1);
# on s390 we might need to install additional packages depending on the installation method
if (check_var('ARCH', 's390x')) {
push(@tags, 'additional-packages');
Expand Down

0 comments on commit 600fe71

Please sign in to comment.