mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-09 23:11:24 +00:00
a49f328dc6
Looking at this, it's a bit weird: the updated packages are actually included in the upgrade process, but we still run _advisory_update, which does basically nothing...then reboots. That's kinda silly and makes the tests a bit flaky, let's fix it. I don't think there's actually any problem with doing the upload of updatepkgs.txt in _repo_setup_updates, becase that already guards against being run more than once, it just bails very early if it's already been run. Signed-off-by: Adam Williamson <awilliam@redhat.com>
23 lines
421 B
Perl
23 lines
421 B
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
use utils;
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
# do the 'repo setup' steps, which set up a repo containing the
|
|
# update packages and run 'dnf update'
|
|
$self->root_console(tty=>3);
|
|
repo_setup;
|
|
# reboot, in case any of the updates need a reboot to apply
|
|
script_run "reboot", 0;
|
|
}
|
|
|
|
sub test_flags {
|
|
return { fatal => 1 };
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|