Skip to content

Commit

Permalink
welcome: Extract bootup timeout variable
Browse files Browse the repository at this point in the history
  • Loading branch information
okurz committed Jan 9, 2017
1 parent b85d55d commit d372392
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/installation/welcome.pm
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ use utils 'ensure_fullscreen';
sub run() {
my @welcome_tags = [qw(inst-welcome inst-welcome-confirm-self-update-server)];
ensure_fullscreen;
my $bootup_timeout = 500;
if (get_var("BETA")) {
assert_screen "inst-betawarning", 500;
assert_screen "inst-betawarning", $bootup_timeout;
send_key "ret";
assert_screen @welcome_tags, 10;
}
else {
assert_screen @welcome_tags, 500;
assert_screen @welcome_tags, $bootup_timeout;
}
if (match_has_tag('inst-welcome-confirm-self-update-server')) {
wait_screen_change { send_key $cmd{ok} };
Expand Down

0 comments on commit d372392

Please sign in to comment.