1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-12-01 17:53:08 +00:00
os-autoinst-distri-fedora/tests/dnf5/upgrade.pm

36 lines
683 B
Perl
Raw Normal View History

2023-04-18 08:56:59 +00:00
use base "installedtest";
use strict;
use testapi;
use utils;
use packagetest;
use dnf;
# This script will make sure that DNF5 is able to
# upgrade the system when it has some older packages.
# https://fedoraproject.org/wiki/QA:Testcase_DNF_basic_update_packages
#
# This is an adaptation from base_update_cli.
sub run {
my $self = shift;
# Install and verify an outdated package.
prepare_test_packages;
verify_installed_packages;
# Upgrade system
assert_script_run("dnf5 upgrade -y pandoc-common", timeout => 120);
# Check the versions.
verify_updated_packages;
}
sub test_flags {
return {always_rollback => 1};
}
1;
# vim: set sw=4 et: