Skip to content

Commit

Permalink
Skip more problematic tests on Debian 10 due to old AMI
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Algarvio <[email protected]>
  • Loading branch information
s0undt3ch committed Sep 15, 2023
1 parent 911160e commit 7c605cf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/pytests/functional/states/test_pkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@

@pytest.fixture(scope="module", autouse=True)
def refresh_db(grains, modules):

if grains["os"] == "Debian" and grains["osmajorrelease"] == 10:
if salt.version.__saltstack_version__.info >= (3006, 0):
pytest.fail("Remove this whole Debian 10 check. It's only meant for 3005.x")
pytest.skip("Skipped on Debian 10 due to old AMI having issues")

modules.pkg.refresh_db()

# If this is Arch Linux, check if pacman is in use by another process
Expand Down

0 comments on commit 7c605cf

Please sign in to comment.