1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-29 00:53:09 +00:00
os-autoinst-distri-fedora/tests/modularity_setup.pm
Adam Williamson 426747c368 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>
2023-06-18 11:15:56 +02:00

21 lines
370 B
Perl

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: