mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-22 14:03:09 +00:00
Fix modularity test to use Rawhide repo on Rawhide
Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
114610bf90
commit
2b02253ecb
@ -14,10 +14,16 @@ sub run {
|
|||||||
|
|
||||||
# Check that modular repositories are installed and enabled.
|
# Check that modular repositories are installed and enabled.
|
||||||
# If the repository does not exist, the output of the command is empty.
|
# If the repository does not exist, the output of the command is empty.
|
||||||
|
if (lc(get_var('VERSION')) eq "rawhide") {
|
||||||
|
my $mrawhide_output = script_output("dnf repolist --enabled rawhide-modular");
|
||||||
|
die "The rawhide-modular repo seems not to be installed." unless (length $mrawhide_output);
|
||||||
|
}
|
||||||
|
else {
|
||||||
my $mfedora_output = script_output("dnf repolist --enabled fedora-modular");
|
my $mfedora_output = script_output("dnf repolist --enabled fedora-modular");
|
||||||
die "The fedora-modular repo seems not to be installed." unless (length $mfedora_output);
|
die "The fedora-modular repo seems not to be installed." unless (length $mfedora_output);
|
||||||
my $mupdates_output = script_output("dnf repolist --enabled updates-modular");
|
my $mupdates_output = script_output("dnf repolist --enabled updates-modular");
|
||||||
die "The updates-modular repo seems not to be installed." unless (length $mupdates_output);
|
die "The updates-modular repo seems not to be installed." unless (length $mupdates_output);
|
||||||
|
}
|
||||||
|
|
||||||
# Check that modularity works and dnf can list the modules.
|
# Check that modularity works and dnf can list the modules.
|
||||||
my $modules = script_output('dnf module list --disablerepo=updates-modular --disablerepo=updates-testing-modular', timeout => 270);
|
my $modules = script_output('dnf module list --disablerepo=updates-modular --disablerepo=updates-testing-modular', timeout => 270);
|
||||||
|
Loading…
Reference in New Issue
Block a user