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
|
|
|
|
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');
|
2022-12-15 19:10:40 +00:00
|
|
|
if ($packageset eq 'default') {
|
|
|
|
# we can't or don't want to check the selected package set in this case
|
2018-01-05 21:39:19 +00:00
|
|
|
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';
|
|
|
|
}
|
2022-12-13 20:03:41 +00:00
|
|
|
# line looks like:
|
2021-05-06 16:00:28 +00:00
|
|
|
# 07:40:26,614 DBG ui.lib.software: Selecting the 'custom-environment' environment.
|
2022-12-13 20:03:41 +00:00
|
|
|
assert_script_run "grep 'Selecting the.*environment' /tmp/anaconda.log /tmp/packaging.log | tail -1 | grep $env";
|
2024-01-09 18:37:57 +00:00
|
|
|
select_console "tty6-console";
|
2018-01-05 21:39:19 +00:00
|
|
|
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";
|
2023-11-30 00:20:13 +00:00
|
|
|
wait_still_screen 3;
|
2015-02-03 14:02:52 +00:00
|
|
|
|
2015-03-25 10:56:48 +00:00
|
|
|
# select desired environment
|
2023-11-30 00:20:13 +00:00
|
|
|
send_key_until_needlematch "anaconda_${packageset}_highlighted", "tab";
|
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
|
2023-04-27 00:41:25 +00:00
|
|
|
assert_screen "anaconda_${packageset}_selected";
|
2015-03-25 10:56:48 +00:00
|
|
|
|
2015-02-03 14:02:52 +00:00
|
|
|
assert_and_click "anaconda_spoke_done";
|
|
|
|
|
|
|
|
# Anaconda hub
|
2022-07-28 20:32:57 +00:00
|
|
|
assert_screen "anaconda_main_hub", 50;
|
2015-02-03 14:02:52 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
sub test_flags {
|
2022-07-28 20:32:57 +00:00
|
|
|
return {fatal => 1};
|
2015-02-03 14:02:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|