mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-12-26 20:50:54 +00:00
12e103e3da
If an update test fails before reaching advisory_post, we don't generate the 'what update packages were installed' and 'were any update packages *not* installed when they should have been' logs, but these may well be useful for diagnosing the failure - so let's also do the same stuff there. Only let's not do it all twice. Signed-off-by: Adam Williamson <awilliam@redhat.com>
23 lines
482 B
Perl
23 lines
482 B
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
use utils;
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
$self->root_console(tty=>3);
|
|
# figure out which packages from the update actually got installed
|
|
# (if any) as part of this test
|
|
advisory_get_installed_packages;
|
|
# figure out if we have a different version of any package from the
|
|
# update installed
|
|
advisory_check_nonmatching_packages;
|
|
}
|
|
|
|
sub test_flags {
|
|
return { fatal => 1 };
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|