Skip to content

Commit

Permalink
Do not set pytest.everest_configs if directory doesn't exist
Browse files Browse the repository at this point in the history
Signed-off-by: Kai-Uwe Hermann <[email protected]>
  • Loading branch information
hikinggrass committed Feb 9, 2024
1 parent eda16b0 commit 001c3da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ def pytest_addoption(parser):
def pytest_configure(config):
everest_prefix = config.getoption('--everest-prefix')
everest_config_path = Path(everest_prefix) / 'etc/everest'
if not everest_config_path.exists():
return
everest_configs = [path for path in everest_config_path.iterdir(
) if path.name.startswith('config-') and path.name.endswith('.yaml')]
pytest.everest_configs = {}
Expand Down

0 comments on commit 001c3da

Please sign in to comment.