From 2cd8eb7e564ff2ce89c0c78231f0e962ae8d6534 Mon Sep 17 00:00:00 2001 From: "Daniel A. Wozniak" Date: Tue, 23 Jul 2024 01:30:07 -0700 Subject: [PATCH] Test check_version fix --- tests/pytests/pkg/integration/test_version.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/pytests/pkg/integration/test_version.py b/tests/pytests/pkg/integration/test_version.py index 00b6e983607..8023cc5ee43 100644 --- a/tests/pytests/pkg/integration/test_version.py +++ b/tests/pytests/pkg/integration/test_version.py @@ -146,6 +146,10 @@ def test_compare_pkg_versions_redhat_rc(version, install_salt): package of the same version. For example, v3004~rc1 should be less than v3004. """ + if install_salt.downgrade: + version = install_salt.prev_version + else: + version = install_salt.version if install_salt.distro_id not in ( "almalinux", "rocky",