1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-29 17:13:09 +00:00
os-autoinst-distri-fedora/tests/dnf5/upgrade.pm
2023-07-18 10:49:06 +02:00

36 lines
683 B
Perl

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: