Skip to content

Commit abc10b6

Browse files
committed
Skip --volume test on Gitlab too
1 parent 6bf13bf commit abc10b6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

unit_test/oci_container_test.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -300,12 +300,14 @@ 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, request):
303+
def test_create_args_volume(tmp_path: Path, request):
304304
if not request.config.getoption("--run-docker"):
305305
pytest.skip("need --run-docker option to run")
306306

307-
if "CIRCLECI" in os.environ:
308-
pytest.skip("Skipping test on CircleCI because docker there does not support --volume")
307+
if "CIRCLECI" in os.environ or "GITLAB_CI" in os.environ:
308+
pytest.skip(
309+
"Skipping test on CircleCI/GitLab because docker there does not support --volume"
310+
)
309311

310312
test_mount_dir = tmp_path / "test_mount"
311313
test_mount_dir.mkdir()

0 commit comments

Comments
 (0)