mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-21 21:43: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:
parent
5d1a055d33
commit
426747c368
@ -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
20
tests/modularity_setup.pm
Normal 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:
|
Loading…
Reference in New Issue
Block a user