Skip to content

Commit 15d98d5

Browse files
committed
pytest_plugin: Skip svn if not available
1 parent 63003ee commit 15d98d5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/libvcs/pytest_plugin.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,11 @@ def empty_svn_repo(
521521
empty_svn_repo_path: pathlib.Path,
522522
) -> pathlib.Path:
523523
"""Return factory to create svn remote repo to for clone / push purposes."""
524+
if not shutil.which("svn") or not shutil.which("svnadmin"):
525+
pytest.skip(
526+
reason="svn is not available",
527+
)
528+
524529
if empty_svn_repo_path.exists() and (empty_svn_repo_path / "conf").exists():
525530
return empty_svn_repo_path
526531

0 commit comments

Comments
 (0)