Skip to content

Commit a97bdd0

Browse files
committed
[test_OMCPath] define test for WSL
1 parent c71b137 commit a97bdd0

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/test_OMCPath.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,23 @@ def test_OMCPath_local():
4343
del om
4444

4545

46+
@pytest.mark.skip(reason="Not able to run WSL on github")
47+
def test_OMCPath_WSL():
48+
omcp = OMPython.OMCProcessWSL(
49+
wsl_omc='omc',
50+
wsl_user='omc',
51+
timeout=30.0,
52+
)
53+
om = OMPython.OMCSessionZMQ(omc_process=omcp)
54+
55+
tempdir = '/tmp'
56+
57+
_run_OMCPath_checks(tempdir, om)
58+
59+
del omcp
60+
del om
61+
62+
4663
def _run_OMCPath_checks(tempdir: str, om: OMPython.OMCSessionZMQ):
4764
p1 = om.omcpath(tempdir).resolve().absolute()
4865
assert str(p1) == tempdir

0 commit comments

Comments
 (0)