1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-12-22 02:13:08 +00:00

Adjust modularity_tests to enable the modular repos at the start

As of yesterday's Rawhide, the modular repos are not installed by
default, so of course all the modular tests fail. So, install
the repos before running the tests.

This isn't conditionalized on release version as I don't think
we ever run this test on anything other than Rawhide and
Branched.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2023-06-18 11:15:56 +02:00
parent 5d1a055d33
commit 426747c368
2 changed files with 21 additions and 2 deletions

View File

@ -2242,8 +2242,7 @@
"settings": {
"BOOTFROM": "c",
"HDD_1": "disk_%FLAVOR%_%MACHINE%.qcow2",
"LOGIN_SNAPSHOT": "1",
"POSTINSTALL": "modularity_module_list modularity_enable_disable_module modularity_install_module",
"POSTINSTALL": "modularity_setup modularity_module_list modularity_enable_disable_module modularity_install_module",
"ROOT_PASSWORD": "weakpassword",
"START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%",
"USER_LOGIN": "false"

20
tests/modularity_setup.pm Normal file
View File

@ -0,0 +1,20 @@
use base "installedtest";
use strict;
use modularity;
use testapi;
use utils;
sub run {
# switch to tty and login as root
$self->root_console(tty => 3);
# modular repos are not installed by default since F39
assert_script_run "dnf -y install fedora-repos-modular";
}
sub test_flags {
return {fatal => 1, milestone => 1};
}
1;
# vim: set sw=4 et: