Skip to content

Commit

Permalink
update tests: skip tests when Checkmk package can not be downloaded.
Browse files Browse the repository at this point in the history
CMK-18870

Change-Id: If2842af4bcaafbe83da596aaa63952954af9d870
  • Loading branch information
dhsh-checkmk committed Oct 1, 2024
1 parent 13dd27c commit 3648f31
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions tests/update/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,11 @@ def _create_site(base_version: CMKVersion) -> Site:

try:
site = site_factory.get_site(site_name, auto_restart_httpd=True)
except Exception as e:
if f"Version {base_version.version} could not be installed" in str(e):
pytest.skip(
f"Base-version {base_version.version} not available in "
f'{os.environ.get("DISTRO")}'
)
else:
raise
except FileNotFoundError:
pytest.skip(
f"Base-version '{base_version.version}' is not available for distro "
f'{os.environ.get("DISTRO")}'
)

return site

Expand Down

0 comments on commit 3648f31

Please sign in to comment.