mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-06-02 19:00:16 +00:00
27 lines
679 B
Perl
27 lines
679 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 {
|
||
|
# without anything - rollback to 'lastgood' snapshot if failed
|
||
|
# 'fatal' - whole test suite is in danger if this fails
|
||
|
# 'milestone' - after this test succeeds, update 'lastgood'
|
||
|
# 'important' - if this fails, set the overall state to 'fail'
|
||
|
return { fatal => 1 };
|
||
|
}
|
||
|
|
||
|
1;
|
||
|
|
||
|
# vim: set sw=4 et:
|