Fixes for modularity_tests on rocky-8.4-dvd-iso-x86_64 #46

Merged
tcooper merged 3 commits from issue_12 into develop 2021-09-23 23:04:26 +00:00
41 changed files with 219 additions and 16 deletions

View File

@ -23,7 +23,7 @@ sub parse_module_list {
foreach my $line (@output_lines) { foreach my $line (@output_lines) {
my ($module, $stream, $profile) = split(/\s+/, $line); my ($module, $stream, $profile) = split(/\s+/, $line);
unless ($module =~ /Fedora|Last|Hint|Name|^$/) { unless ($module =~ /Rocky|Last|Hint|Name|^$/) {
$profile =~ s/,$//; $profile =~ s/,$//;
my %module = ("module" => $module, "stream" => $stream, "profile" => $profile); my %module = ("module" => $module, "stream" => $stream, "profile" => $profile);
push(@parsed_list, \%module); push(@parsed_list, \%module);

View File

@ -10,6 +10,7 @@
], ],
"properties": [], "properties": [],
"tags": [ "tags": [
"ENV-DISTRI-rocky",
"leftbar_generic" "leftbar_generic"
] ]
} }

View File

@ -10,6 +10,7 @@
], ],
"properties": [], "properties": [],
"tags": [ "tags": [
"ENV-DISTRI-rocky",
"leftbar_server" "leftbar_server"
] ]
} }

View File

@ -10,6 +10,7 @@
], ],
"properties": [], "properties": [],
"tags": [ "tags": [
"ENV-DISTRI-rocky",
"topbar_generic" "topbar_generic"
] ]
} }

View File

@ -10,6 +10,7 @@
], ],
"properties": [], "properties": [],
"tags": [ "tags": [
"ENV-DISTRI-rocky",
"anaconda_select_install_lang_selected", "anaconda_select_install_lang_selected",
"anaconda_select_install_lang_filtered", "anaconda_select_install_lang_filtered",
"LANGUAGE-english" "LANGUAGE-english"

View File

@ -10,6 +10,7 @@
], ],
"properties": [], "properties": [],
"tags": [ "tags": [
"ENV-DISTRI-rocky",
"version_8.4_ident" "version_8.4_ident"
] ]
} }

View File

@ -10,6 +10,7 @@
], ],
"properties": [], "properties": [],
"tags": [ "tags": [
"ENV-DISTRI-rocky",
"version_8_ident" "version_8_ident"
] ]
} }

View File

@ -10,6 +10,7 @@
], ],
"properties": [], "properties": [],
"tags": [ "tags": [
"ENV-DISTRI-rocky",
"version_greenobsidian_ident" "version_greenobsidian_ident"
] ]
} }

View File

@ -0,0 +1,16 @@
{
"area": [
{
"xpos": 44,
"ypos": 146,
"width": 381,
"height": 13,
"type": "match"
}
],
"properties": [],
"tags": [
"ENV-DISTRI-rocky",
"anaconda_graphical-server_highlighted"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

View File

@ -0,0 +1,16 @@
{
"area": [
{
"xpos": 46,
"ypos": 127,
"width": 222,
"height": 34,
"type": "match"
}
],
"properties": [],
"tags": [
"ENV-DISTRI-rocky",
"anaconda_graphical-server_highlighted"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

View File

@ -0,0 +1,16 @@
{
"area": [
{
"xpos": 28,
"ypos": 129,
"width": 397,
"height": 30,
"type": "match"
}
],
"properties": [],
"tags": [
"ENV-DISTRI-rocky",
"anaconda_graphical-server_selected"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

View File

@ -0,0 +1,16 @@
{
"area": [
{
"xpos": 27,
"ypos": 126,
"width": 243,
"height": 34,
"type": "match"
}
],
"properties": [],
"tags": [
"ENV-DISTRI-rocky",
"anaconda_graphical-server_selected"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

View File

@ -0,0 +1,16 @@
{
"area": [
{
"xpos": 27,
"ypos": 318,
"width": 177,
"height": 32,
"type": "match"
}
],
"properties": [],
"tags": [
"ENV-DISTRI-rocky",
"anaconda_virtualization-host_highlighted"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

View File

@ -0,0 +1,16 @@
{
"area": [
{
"xpos": 28,
"ypos": 318,
"width": 181,
"height": 31,
"type": "match"
}
],
"properties": [],
"tags": [
"ENV-DISTRI-rocky",
"anaconda_virtualization-host_selected"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

View File

@ -0,0 +1,16 @@
{
"area": [
{
"width": 125,
"height": 13,
"type": "match",
"xpos": 48,
"ypos": 335
}
],
"properties": [],
"tags": [
"ENV-DISTRI-rocky",
"anaconda_virtualization-host_highlighted"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

View File

@ -0,0 +1,16 @@
{
"area": [
{
"xpos": 48,
"type": "match",
"ypos": 244,
"width": 271,
"height": 29
}
],
"properties": [],
"tags": [
"ENV-DISTRI-rocky",
"anaconda_workstation_highlighted"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

View File

@ -0,0 +1,16 @@
{
"area": [
{
"xpos": 27,
"ypos": 242,
"width": 246,
"height": 33,
"type": "match"
}
],
"properties": [],
"tags": [
"ENV-DISTRI-rocky",
"anaconda_workstation_highlighted"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

View File

@ -0,0 +1,16 @@
{
"area": [
{
"width": 290,
"height": 31,
"ypos": 242,
"type": "match",
"xpos": 29
}
],
"properties": [],
"tags": [
"ENV-DISTRI-rocky",
"anaconda_workstation_selected"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

View File

@ -0,0 +1,16 @@
{
"area": [
{
"xpos": 28,
"ypos": 241,
"width": 247,
"height": 32,
"type": "match"
}
],
"properties": [],
"tags": [
"ENV-DISTRI-rocky",
"anaconda_workstation_selected"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

View File

@ -10,6 +10,7 @@
], ],
"properties": [], "properties": [],
"tags": [ "tags": [
"ENV-DISTRI-rocky",
"anaconda_part_fs_ext4" "anaconda_part_fs_ext4"
] ]
} }

View File

@ -12,6 +12,6 @@
"tags": [ "tags": [
"anaconda_part_fs", "anaconda_part_fs",
"anaconda_part_fs_ext4_selected", "anaconda_part_fs_ext4_selected",
"ENV-DISTRI-fedora" "ENV-DISTRI-rocky",
] ]
} }

View File

@ -10,7 +10,7 @@
], ],
"properties": [], "properties": [],
"tags": [ "tags": [
"ENV-DISTRI-fedora", "ENV-DISTRI-rocky",
"anaconda_part_fs", "anaconda_part_fs",
"anaconda_part_fs_xfs_selected" "anaconda_part_fs_xfs_selected"
] ]

View File

@ -10,7 +10,7 @@
], ],
"properties": [], "properties": [],
"tags": [ "tags": [
"DISTRI-rocky", "ENV-DISTRI-rocky",
"LANGUAGE-english", "LANGUAGE-english",
"anaconda_manual_partitioning" "anaconda_manual_partitioning"
] ]

View File

@ -10,6 +10,7 @@
], ],
"properties": [], "properties": [],
"tags": [ "tags": [
"ENV-DISTRI-rocky",
"autoupdate_planned_day" "autoupdate_planned_day"
] ]
} }

View File

@ -10,6 +10,7 @@
], ],
"properties": [], "properties": [],
"tags": [ "tags": [
"ENV-DISTRI-rocky",
"cockpit_login" "cockpit_login"
] ]
} }

View File

@ -14,6 +14,7 @@
], ],
"properties": [], "properties": [],
"tags": [ "tags": [
"ENV-DISTRI-rocky",
"cockpit_updates_auto_all" "cockpit_updates_auto_all"
] ]
} }

View File

@ -10,6 +10,7 @@
], ],
"properties": [], "properties": [],
"tags": [ "tags": [
"ENV-DISTRI-rocky",
"bootloader", "bootloader",
"bootloader_bios" "bootloader_bios"
] ]

View File

@ -19,19 +19,34 @@ sub run {
# packages this will need to assume what appears to be the default in minimal. # packages this will need to assume what appears to be the default in minimal.
my $modules = script_output('dnf module list --enabled', timeout => 270); my $modules = script_output('dnf module list --enabled', timeout => 270);
my @modules = parse_module_list($modules); my @modules = parse_module_list($modules);
die "Enabled modules is less than the default (3)." unless (scalar @modules < 3); my $module_count = scalar @modules;
die "Enabled modules is greater than the default (3)." unless (scalar @modules > 3);
# More advanced... loop over default modules and check them directly. The is_listed my $flavor = get_var('FLAVOR', 'minimal-iso');
# bit comes from modularity_enable_disable_module.pm my $packageset = get_var('PACKAGE_SET', 'minimal');
#perl 5.26 [d][e] if ($flavor eq 'boot-iso') {
#perl-IO-Socket-SSL 2.066 [d][e] die "There seem to be enabled modules when the list should be empty." unless ($module_count == 0);
#perl-libwww-perl 6.34 [d][e] } elsif ($flavor eq 'minimal-iso') {
#my @enabled_modules = parse_module_list($enabled); if ($packageset eq 'minimal') {
#unless (is_listed($name, $stream, \@enabled_modules)) { die "There seem to be enabled modules when the list should be empty." unless ($module_count == 0);
# die "The enabled module is not listed in the list of enabled modules but it should be."; } elsif ($packageset eq 'server') {
#} die "There seem to be enabled modules when the list should be empty." unless ($module_count == 0);
}
} elsif ($flavor eq 'dvd-iso' || $flavor eq 'universal') {
if ($packageset eq 'minimal') {
die "Enabled modules ($module_count) is not equal to the default (1)." unless (scalar @modules == 1);
} elsif ($packageset eq 'server') {
die "Enabled modules ($module_count) is not equal to the default (2)." unless (scalar @modules == 2);
} elsif ($packageset eq 'graphical-server') {
die "Enabled modules ($module_count) is not equal to the default (9)." unless (scalar @modules == 9);
} elsif ($packageset eq 'workstation') {
die "Enabled modules ($module_count) is not equal to the default (6)." unless (scalar @modules == 6);
} elsif ($packageset eq 'virtualization-host') {
die "Enabled modules ($module_count) is not equal to the default (2)." unless (scalar @modules == 2);
}
} else {
die "Enabled modules ($module_count) is not equal to the default (2)." unless (scalar @modules == 2);
}
# Check that dnf lists the disabled modules. # Check that dnf lists the disabled modules.
$modules = script_output('dnf module list --disabled', timeout => 270); $modules = script_output('dnf module list --disabled', timeout => 270);