Skip to content

Commit b9d7977

Browse files
committed
fix(tests): skip partclone handler test on darwin
partclone is not available on Darwin (OSX), so we need to skip that test
1 parent 3a6c316 commit b9d7977

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_handlers.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"""
99

1010
import inspect
11+
import sys
1112
from pathlib import Path
1213

1314
import pytest
@@ -35,6 +36,12 @@ def test_all_handlers(
3536
extraction_config: ExtractionConfig,
3637
request: pytest.FixtureRequest,
3738
):
39+
handler_name = input_dir.parent.name
40+
if (sys.platform, handler_name) == ("darwin", "partclone"):
41+
pytest.skip(
42+
f"Handler '{handler_name}' not supported on platform '{sys.platform}'"
43+
)
44+
3845
log_path = Path("/dev/null") # no logging
3946
report_file = None # no reporting
4047

0 commit comments

Comments
 (0)