Skip to content

Commit 34e838c

Browse files
committed
[test_OMCPath] activate docker based on test_docker
1 parent 7dcf5d6 commit 34e838c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/test_OMCPath.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
import sys
12
import OMPython
23
import pytest
34

5+
skip_on_windows = pytest.mark.skipif(
6+
sys.platform.startswith("win"),
7+
reason="OpenModelica Docker image is Linux-only; skipping on Windows.",
8+
)
49

5-
@pytest.mark.skip(reason="This test would fail (no docker on github)")
10+
11+
@skip_on_windows
612
def test_OMCPath_docker():
713
omcp = OMPython.OMCProcessDocker(docker="openmodelica/openmodelica:v1.25.0-minimal")
814
om = OMPython.OMCSessionZMQ(omc_process=omcp)

0 commit comments

Comments
 (0)