Updated check version of Salt for the test

This commit is contained in:
David Murphy 2023-11-06 15:35:37 -07:00 committed by Pedro Algarvio
parent a75f0a9f41
commit 9f8fc27cba

View file

@ -136,9 +136,9 @@ def test_pkg_paths(
Test package paths ownership Test package paths ownership
""" """
if packaging.version.parse(install_salt.version) <= packaging.version.parse( if packaging.version.parse(install_salt.version) <= packaging.version.parse(
"3006.2" "3006.4"
): ):
pytest.skip("Package path ownership was changed in salt 3006.3") pytest.skip("Package path ownership was changed in salt 3006.4")
salt_user_subdirs = [] salt_user_subdirs = []
for _path in pkg_paths: for _path in pkg_paths:
pkg_path = pathlib.Path(_path) pkg_path = pathlib.Path(_path)
@ -184,9 +184,9 @@ def test_paths_log_rotation(
Assumes test_pkg_paths successful Assumes test_pkg_paths successful
""" """
if packaging.version.parse(install_salt.version) <= packaging.version.parse( if packaging.version.parse(install_salt.version) <= packaging.version.parse(
"3006.3" "3006.4"
): ):
pytest.skip("Package path ownership was changed in salt 3006.3") pytest.skip("Package path ownership was changed in salt 3006.4")
if install_salt.distro_id not in ("centos", "redhat", "amzn", "fedora"): if install_salt.distro_id not in ("centos", "redhat", "amzn", "fedora"):
pytest.skip( pytest.skip(