Test check_version fix

This commit is contained in:
Daniel A. Wozniak 2024-07-23 01:30:07 -07:00
parent 137a6b7119
commit 2cd8eb7e56

View file

@ -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",