forked from os-autoinst/os-autoinst-distri-opensuse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstallsummarystep.pm
35 lines (31 loc) · 865 Bytes
/
installsummarystep.pm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package installsummarystep;
use base 'y2_installbase';
use testapi;
use strict;
use warnings;
sub accept3rdparty {
#Third party licenses sometimes appear
while (check_screen([qw(3rdpartylicense automatic-changes inst-overview)], 15)) {
last if match_has_tag("automatic-changes");
last if match_has_tag("inst-overview");
wait_screen_change {
send_key $cmd{acceptlicense};
};
}
}
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;
assert_screen 'automatic-changes';
send_key $cmd{ok};
}
else {
send_key $cmd{ok};
accept3rdparty;
}
assert_screen 'inst-overview', $timeout;
}
1;