Skip to content

Commit 7d49912

Browse files
committed
specify buildtool root dir
1 parent 266b2c9 commit 7d49912

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/test_matlab_versions.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import pytest
22
import subprocess
33
import platform
4+
from pathlib import Path
45

56
# these are HPC system specific
67
version_keys = [
@@ -24,6 +25,8 @@
2425
"2017a",
2526
]
2627

28+
R = Path(__file__).parents[1]
29+
2730

2831
@pytest.mark.skipif(not platform.system() == "Linux", reason="HPC only")
2932
@pytest.mark.parametrize("version", version_keys)
@@ -42,4 +45,4 @@ def test_matlab_version(version):
4245
else:
4346
cmd = lcmd + "matlab -r 'test_main; exit'"
4447

45-
subprocess.check_call(cmd, shell=True)
48+
subprocess.check_call(cmd, shell=True, cwd=R)

0 commit comments

Comments
 (0)