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.
|
||||||
my $mfedora_output = script_output("dnf repolist --enabled fedora-modular");
|
if (lc(get_var('VERSION')) eq "rawhide") {
|
||||||
die "The fedora-modular repo seems not to be installed." unless (length $mfedora_output);
|
my $mrawhide_output = script_output("dnf repolist --enabled rawhide-modular");
|
||||||
my $mupdates_output = script_output("dnf repolist --enabled updates-modular");
|
die "The rawhide-modular repo seems not to be installed." unless (length $mrawhide_output);
|
||||||
die "The updates-modular repo seems not to be installed." unless (length $mupdates_output);
|
}
|
||||||
|
else {
|
||||||
|
my $mfedora_output = script_output("dnf repolist --enabled fedora-modular");
|
||||||
|
die "The fedora-modular repo seems not to be installed." unless (length $mfedora_output);
|
||||||
|
my $mupdates_output = script_output("dnf repolist --enabled updates-modular");
|
||||||
|
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