Merge pull request #10403 from ThomasWaldmann/skip-repo-space-haiku-10400

tests: skip repo-space tests on Haiku OS
This commit is contained in:
TW
2026-09-22 12:48:16 +02:00
committed by GitHub
@@ -1,9 +1,16 @@
import pytest
from ...constants import * # NOQA
from ...platformflags import is_haiku
from . import cmd, generate_archiver_tests, RK_ENCRYPTION
pytest_generate_tests = lambda metafunc: generate_archiver_tests(metafunc, kinds="local") # NOQA
# All tests here reserve space, which makes borg generate 64 MiB objects via os.urandom.
# On Haiku, os.urandom is currently extremely slow, running into the test timeout, see #10400.
pytestmark = pytest.mark.skipif(is_haiku, reason="os.urandom is too slow on Haiku OS")
def test_repo_space_basics(archivers, request):
archiver = request.getfixturevalue(archivers)