From bc6e114ebb636a87e45e2788ff2c8f729a68e3b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radoslav=20Bod=C3=B3?= <bodik@cesnet.cz> Date: Tue, 9 Apr 2024 17:55:03 +0200 Subject: [PATCH] tests: skip storage_drop_versions_many by default --- .gitlab-ci.yml | 2 +- tests/test_storage.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8c2683c..c3dbd73 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,5 +14,5 @@ code_quality: - venv/bin/pip install -U pip - venv/bin/pip install -r requirements.lock script: - - . venv/bin/activate && make coverage + - . venv/bin/activate && PYTEST_SLOW=1 make coverage - . venv/bin/activate && make lint diff --git a/tests/test_storage.py b/tests/test_storage.py index 0a371a6..9e8bcf4 100644 --- a/tests/test_storage.py +++ b/tests/test_storage.py @@ -1,6 +1,7 @@ """rwm storagemanager and bucket policing tests""" import json +import os from io import BytesIO from pathlib import Path @@ -187,6 +188,7 @@ def test_storage_drop_versions(tmpworkdir: str, microceph: str, radosuser_admin: assert len(object_versions) == 1 +@pytest.mark.skipif('PYTEST_SLOW' not in os.environ, reason='slow on devnode, runs in CI') def test_storage_drop_versions_many(tmpworkdir: str, microceph: str, radosuser_admin: rwm.StorageManager): # pylint: disable=unused-argument """test manager storage_drop_versions""" -- GitLab