2016-09-20 18:41:12 +00:00
|
|
|
use base "installedtest";
|
|
|
|
use strict;
|
|
|
|
use testapi;
|
|
|
|
use packagetest;
|
2023-05-06 14:56:50 +00:00
|
|
|
use utils;
|
2016-09-20 18:41:12 +00:00
|
|
|
|
|
|
|
sub run {
|
|
|
|
my $self = shift;
|
2023-05-06 03:57:13 +00:00
|
|
|
|
2016-09-20 18:41:12 +00:00
|
|
|
# switch to TTY3 for both, graphical and console tests
|
2023-02-12 22:59:37 +00:00
|
|
|
$self->root_console(tty => 3);
|
2023-05-06 03:57:13 +00:00
|
|
|
|
2016-09-20 18:41:12 +00:00
|
|
|
# enable test repos and install test packages
|
|
|
|
prepare_test_packages;
|
2023-05-06 03:57:13 +00:00
|
|
|
|
2016-09-20 18:41:12 +00:00
|
|
|
# check rpm agrees they installed good
|
|
|
|
verify_installed_packages;
|
2023-12-30 19:21:27 +00:00
|
|
|
|
|
|
|
# update the fake acpica-tools (should come from the real repo)
|
2023-04-29 17:41:51 +00:00
|
|
|
# this can take a long time if we get unlucky with the metadata refresh
|
2023-12-30 19:21:27 +00:00
|
|
|
assert_script_run 'dnf -y --disablerepo=openqa-testrepo* update acpica-tools', 600;
|
2023-05-06 03:57:13 +00:00
|
|
|
|
2016-09-20 18:41:12 +00:00
|
|
|
# check we got the updated version
|
|
|
|
verify_updated_packages;
|
2023-05-06 03:57:13 +00:00
|
|
|
|
2023-12-30 19:21:27 +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-12-30 19:21:27 +00:00
|
|
|
assert_script_run 'dnf -y remove acpica-tools';
|
|
|
|
assert_script_run 'dnf -y --disablerepo=openqa-testrepo* install acpica-tools', 120;
|
|
|
|
assert_script_run 'rpm -V acpica-tools';
|
2016-09-20 18:41:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sub test_flags {
|
2023-02-12 22:59:37 +00:00
|
|
|
return {fatal => 1};
|
2016-09-20 18:41:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|