mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Skip test on upgrade and downgrade
This commit is contained in:
parent
3d539e4dd2
commit
580d8b2851
1 changed files with 4 additions and 0 deletions
|
@ -31,6 +31,8 @@ def package(version, pkg_arch):
|
||||||
|
|
||||||
@pytest.mark.skipif(not salt.utils.path.which("rpm"), reason="rpm is not installed")
|
@pytest.mark.skipif(not salt.utils.path.which("rpm"), reason="rpm is not installed")
|
||||||
def test_provides(install_salt, package, version, provides_arch):
|
def test_provides(install_salt, package, version, provides_arch):
|
||||||
|
if install_salt.downgrade or install_salt.upgrade:
|
||||||
|
pytest.skip("Only test on install pkg tests")
|
||||||
if install_salt.distro_id not in (
|
if install_salt.distro_id not in (
|
||||||
"almalinux",
|
"almalinux",
|
||||||
"rocky",
|
"rocky",
|
||||||
|
@ -62,6 +64,8 @@ def test_provides(install_salt, package, version, provides_arch):
|
||||||
|
|
||||||
@pytest.mark.skipif(not salt.utils.path.which("rpm"), reason="rpm is not installed")
|
@pytest.mark.skipif(not salt.utils.path.which("rpm"), reason="rpm is not installed")
|
||||||
def test_requires(install_salt, package, version):
|
def test_requires(install_salt, package, version):
|
||||||
|
if install_salt.downgrade or install_salt.upgrade:
|
||||||
|
pytest.skip("Only test on install pkg tests")
|
||||||
if install_salt.distro_id not in (
|
if install_salt.distro_id not in (
|
||||||
"almalinux",
|
"almalinux",
|
||||||
"rocky",
|
"rocky",
|
||||||
|
|
Loading…
Add table
Reference in a new issue