test(conftest): skip Salt version test for nightly

This commit is contained in:
Imran Iqbal 2022-12-05 08:27:14 +00:00
parent 100d972703
commit 83f9c1e190
No known key found for this signature in database
GPG key ID: 6D8629439D2B7819

View file

@ -46,6 +46,6 @@ def target_python_version():
@pytest.fixture(scope="session") @pytest.fixture(scope="session")
def target_salt_version(): def target_salt_version():
target_salt = os.environ["KITCHEN_SUITE"].split("-", 2)[-1].replace("-", ".") target_salt = os.environ["KITCHEN_SUITE"].split("-", 2)[-1].replace("-", ".")
if target_salt in ("latest", "master"): if target_salt in ("latest", "master", "nightly"):
pytest.skip("Don't have a specific salt version to test against") pytest.skip("Don't have a specific salt version to test against")
return target_salt return target_salt