skip tests not working with specific cache implementations

This commit is contained in:
Thomas Waldmann 2024-07-14 19:52:17 +02:00
parent 616af8daa8
commit 78954b6487
No known key found for this signature in database
GPG Key ID: 243ACFA951F78E01
2 changed files with 3 additions and 0 deletions

View File

@ -204,6 +204,7 @@ def test_unknown_feature_on_create(archivers, request):
cmd_raises_unknown_feature(archiver, ["create", "test", "input"])
@pytest.mark.skipif(os.environ.get("BORG_CACHE_IMPL") in ("newcache", "adhoc"), reason="only works with LocalCache")
def test_unknown_feature_on_cache_sync(archivers, request):
# LocalCache.sync checks repo compat
archiver = request.getfixturevalue(archivers)
@ -323,6 +324,7 @@ def test_check_cache(archivers, request):
check_cache(archiver)
@pytest.mark.skipif(os.environ.get("BORG_CACHE_IMPL") in ("newcache", "adhoc"), reason="only works with LocalCache")
def test_env_use_chunks_archive(archivers, request, monkeypatch):
archiver = request.getfixturevalue(archivers)
create_test_files(archiver.input_path)

View File

@ -540,6 +540,7 @@ def test_create_pattern_intermediate_folders_first(archivers, request):
assert out_list.index("d x/b") < out_list.index("- x/b/foo_b")
@pytest.mark.skipif(os.environ.get("BORG_CACHE_IMPL") in ("newcache", "local"), reason="only works with AdHocCache")
def test_create_no_cache_sync_adhoc(archivers, request): # TODO: add test for NewCache
archiver = request.getfixturevalue(archivers)
create_test_files(archiver.input_path)