Test Suite: install_default on rocky-8.5-[minimal|boot|dvd]-iso-x86_64 #77

Merged
akatch merged 6 commits from package_group_selection into develop 2022-03-31 23:23:01 +00:00
Showing only changes of commit 30cbff08c9 - Show all commits

View File

@ -7,25 +7,21 @@ sub run {
# Anaconda hub # Anaconda hub
assert_screen "anaconda_main_hub", 300; # assert_screen "anaconda_main_hub", 300; #
# Select package set. Minimal is the default, if 'default' is specified, skip selection, # Select package set. Default is 'graphical-server', unless FLAVOR=minimal, where default is 'server'.
# but verify correct default in some cases # If 'default' is specified, skip selection, but verify correct default
my $packageset = get_var('PACKAGE_SET', 'minimal'); my $packageset = get_var('PACKAGE_SET', 'graphical-server');
if ($packageset eq 'default' || get_var('MODULAR')) { if ($packageset eq 'default') {
# we can't or don't want to check the selected package set in these cases # if PACKAGE_SET=default, actually check for these:
return if (get_var('CANNED') || get_var('LIVE') || get_var('MEMCHECK') || (get_var('DISTRI') eq 'Rocky')); # dvd-iso = graphical-server
# minimal-iso = server
# boot-iso = graphical-server
$self->root_console; $self->root_console;
my $env = 'custom-environment'; my $env = "graphical-server-environment";
if (get_var('SUBVARIANT') eq 'Server') { if ( get_var('FLAVOR') eq 'minimal-iso') {
$env = 'server-product-environment'; $env = "server-environment";
} }
elsif (get_var('SUBVARIANT') eq 'Workstation') {
$env = 'workstation-product-environment'; assert_script_run "egrep 'selected environment:' /tmp/anaconda.log /tmp/packaging.log | tail -1 | grep $env";
}
# 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";
send_key "ctrl-alt-f6"; send_key "ctrl-alt-f6";
assert_screen "anaconda_main_hub", 30; assert_screen "anaconda_main_hub", 30;
return; return;