2015-08-05 06:23:59 +00:00
|
|
|
use base "anacondatest";
|
2015-02-03 14:02:52 +00:00
|
|
|
use strict;
|
|
|
|
use testapi;
|
|
|
|
|
|
|
|
sub run {
|
2018-01-05 21:39:19 +00:00
|
|
|
my $self = shift;
|
2015-04-10 08:38:28 +00:00
|
|
|
# Anaconda hub
|
|
|
|
assert_screen "anaconda_main_hub", 300; #
|
|
|
|
|
2018-01-05 21:39:19 +00:00
|
|
|
# Select package set. Minimal is the default, if 'default' is specified, skip selection,
|
|
|
|
# but verify correct default in some cases
|
2015-03-25 10:56:48 +00:00
|
|
|
my $packageset = get_var('PACKAGE_SET', 'minimal');
|
2017-11-07 20:44:52 +00:00
|
|
|
if ($packageset eq 'default' || get_var('MODULAR')) {
|
2018-01-05 21:39:19 +00:00
|
|
|
# we can't or don't want to check the selected package set in these cases
|
|
|
|
return if (get_var('CANNED') || get_var('LIVE') || get_var('MEMCHECK'));
|
|
|
|
$self->root_console;
|
|
|
|
my $env = 'custom-environment';
|
|
|
|
if (get_var('SUBVARIANT') eq 'Server') {
|
|
|
|
$env = 'server-product-environment';
|
|
|
|
}
|
|
|
|
elsif (get_var('SUBVARIANT') eq 'Workstation') {
|
|
|
|
$env = 'workstation-product-environment';
|
|
|
|
}
|
2021-05-06 16:00:28 +00:00
|
|
|
# pre-F35 line looks like:
|
|
|
|
# 07:51:39,382 INF modules.payloads.payload.dnf.utils: selected environment: custom-environment
|
|
|
|
# F35+ line looks like:
|
|
|
|
# 07:40:26,614 DBG ui.lib.software: Selecting the 'custom-environment' environment.
|
|
|
|
assert_script_run "egrep '(selected env|Selecting the.*environment)' /tmp/anaconda.log /tmp/packaging.log | tail -1 | grep $env";
|
2018-01-05 21:39:19 +00:00
|
|
|
send_key "ctrl-alt-f6";
|
|
|
|
assert_screen "anaconda_main_hub", 30;
|
|
|
|
return;
|
2015-03-25 10:56:48 +00:00
|
|
|
}
|
2015-02-03 14:02:52 +00:00
|
|
|
|
|
|
|
assert_and_click "anaconda_main_hub_select_packages";
|
|
|
|
|
2015-03-25 10:56:48 +00:00
|
|
|
# Focus on "base environment" list
|
|
|
|
send_key "tab";
|
2016-09-12 17:24:30 +00:00
|
|
|
wait_still_screen 1;
|
2015-03-25 10:56:48 +00:00
|
|
|
send_key "tab";
|
2016-09-12 17:24:30 +00:00
|
|
|
wait_still_screen 1;
|
2015-02-03 14:02:52 +00:00
|
|
|
|
2015-03-25 10:56:48 +00:00
|
|
|
# select desired environment
|
|
|
|
# go through the list 20 times at max (to prevent infinite loop when it's missing)
|
|
|
|
for (my $i = 0; !check_screen("anaconda_".$packageset."_highlighted", 1) && $i < 20; $i++) {
|
2015-08-05 06:23:59 +00:00
|
|
|
send_key "down";
|
2015-02-03 14:02:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
send_key "spc";
|
|
|
|
|
2015-03-25 10:56:48 +00:00
|
|
|
# check that desired environment is selected
|
|
|
|
assert_screen "anaconda_".$packageset."_selected";
|
|
|
|
|
2015-02-03 14:02:52 +00:00
|
|
|
assert_and_click "anaconda_spoke_done";
|
|
|
|
|
|
|
|
# Anaconda hub
|
2021-05-25 22:10:06 +00:00
|
|
|
assert_screen "anaconda_main_hub", 50; #
|
2015-02-03 14:02:52 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
sub test_flags {
|
|
|
|
return { fatal => 1 };
|
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|