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: