mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-12-28 21:23:09 +00:00
201fddcb72
There's some ambiguity about the case of the ELN version string. Currently it's "ELN", it's going to be "eln" soon. Let's just always use case-insensitive comparisons. Signed-off-by: Adam Williamson <awilliam@redhat.com>
38 lines
1.2 KiB
Perl
38 lines
1.2 KiB
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
use packagetest;
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
# switch to TTY3 for both, graphical and console tests
|
|
$self->root_console(tty => 3);
|
|
# enable test repos and install test packages
|
|
prepare_test_packages;
|
|
# check rpm agrees they installed good
|
|
verify_installed_packages;
|
|
# we should disable the test repos now. also, on regular Fedora,
|
|
# disable updates-testing; on ELN it doesn't exist and trying to
|
|
# disable it causes an error
|
|
my $disable = '--disablerepo=openqa-testrepo*';
|
|
$disable .= ' --disablerepo=updates-testing' unless (lc(get_var("VERSION")) eq "eln");
|
|
# update the fake acpica-tools (should come from the real repo)
|
|
# this can take a long time if we get unlucky with the metadata refresh
|
|
assert_script_run "dnf -y $disable update acpica-tools", 600;
|
|
# check we got the updated version
|
|
verify_updated_packages;
|
|
# now remove acpica-tools, and see if we can do a straight
|
|
# install from the default repos
|
|
assert_script_run 'dnf -y remove acpica-tools';
|
|
assert_script_run "dnf -y $disable install acpica-tools", 120;
|
|
assert_script_run 'rpm -V acpica-tools';
|
|
}
|
|
|
|
sub test_flags {
|
|
return {fatal => 1};
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|