Skip to content

Commit 2afeca6

Browse files
committed
Don't run test unless docker is available
1 parent bf5db55 commit 2afeca6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

unit_test/oci_container_test.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,10 @@ def test_podman_vfs(tmp_path: Path, monkeypatch, request):
300300
subprocess.run(["podman", "unshare", "rm", "-rf", vfs_path], check=True)
301301

302302

303-
def test_create_args(tmp_path: Path):
303+
def test_create_args(tmp_path: Path, request):
304+
if not request.config.getoption("--run-docker"):
305+
pytest.skip("need --run-docker option to run")
306+
304307
test_mount_dir = tmp_path / "test_mount"
305308
test_mount_dir.mkdir()
306309
(test_mount_dir / "test_file.txt").write_text("1234")

0 commit comments

Comments
 (0)