We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 266b2c9 commit 7d49912Copy full SHA for 7d49912
scripts/test_matlab_versions.py
@@ -1,6 +1,7 @@
1
import pytest
2
import subprocess
3
import platform
4
+from pathlib import Path
5
6
# these are HPC system specific
7
version_keys = [
@@ -24,6 +25,8 @@
24
25
"2017a",
26
]
27
28
+R = Path(__file__).parents[1]
29
+
30
31
@pytest.mark.skipif(not platform.system() == "Linux", reason="HPC only")
32
@pytest.mark.parametrize("version", version_keys)
@@ -42,4 +45,4 @@ def test_matlab_version(version):
42
45
else:
43
46
cmd = lcmd + "matlab -r 'test_main; exit'"
44
47
- subprocess.check_call(cmd, shell=True)
48
+ subprocess.check_call(cmd, shell=True, cwd=R)
0 commit comments