Skip to content
Snippets Groups Projects
Commit cd7a4369 authored by David Douard's avatar David Douard
Browse files

tests/winery: make USE_CEPH default to "no"

And use a specific skip message.
parent 7713724a
No related branches found
No related tags found
1 merge request!209tests/winery: make USE_CEPH default to "no"
Pipeline #13097 failed
# Copyright (C) 2021-2024 The Software Heritage developers
# Copyright (C) 2021-2025 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
......@@ -65,8 +65,12 @@ logger = logging.getLogger(__name__)
def needs_ceph():
ceph = shutil.which("ceph")
if not ceph or os.environ.get("USE_CEPH", "yes") != "yes":
if not ceph:
pytest.skip("the ceph CLI was not found")
if os.environ.get("USE_CEPH", "no") != "yes":
pytest.skip(
"the ceph-based tests have been disabled (USE_CEPH env var is not 'yes')"
)
@pytest.fixture
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment