2016-09-20 18:41:12 +00:00
|
|
|
use base "installedtest";
|
|
|
|
use strict;
|
|
|
|
use testapi;
|
|
|
|
use packagetest;
|
|
|
|
|
|
|
|
sub run {
|
|
|
|
my $self = shift;
|
|
|
|
# switch to TTY3 for both, graphical and console tests
|
2022-07-28 20:32:57 +00:00
|
|
|
$self->root_console(tty => 3);
|
2016-09-20 18:41:12 +00:00
|
|
|
# enable test repos and install test packages
|
|
|
|
prepare_test_packages;
|
|
|
|
# check rpm agrees they installed good
|
|
|
|
verify_installed_packages;
|
2024-02-23 00:44:21 +00:00
|
|
|
# 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*';
|
2024-09-04 20:17:00 +00:00
|
|
|
$disable .= ' --disablerepo=updates-testing' unless (lc(get_var("VERSION")) eq "eln");
|
2023-06-20 11:06:36 +00:00
|
|
|
# update the fake acpica-tools (should come from the real repo)
|
2016-09-20 18:41:12 +00:00
|
|
|
# this can take a long time if we get unlucky with the metadata refresh
|
2024-02-23 00:44:21 +00:00
|
|
|
assert_script_run "dnf -y $disable update acpica-tools", 600;
|
2016-09-20 18:41:12 +00:00
|
|
|
# check we got the updated version
|
|
|
|
verify_updated_packages;
|
2023-06-20 11:06:36 +00:00
|
|
|
# now remove acpica-tools, and see if we can do a straight
|
2016-09-20 18:41:12 +00:00
|
|
|
# install from the default repos
|
2023-06-20 11:06:36 +00:00
|
|
|
assert_script_run 'dnf -y remove acpica-tools';
|
2024-02-23 00:44:21 +00:00
|
|
|
assert_script_run "dnf -y $disable install acpica-tools", 120;
|
2023-06-20 11:06:36 +00:00
|
|
|
assert_script_run 'rpm -V acpica-tools';
|
2016-09-20 18:41:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sub test_flags {
|
2022-07-28 20:32:57 +00:00
|
|
|
return {fatal => 1};
|
2016-09-20 18:41:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|