Skip to content

Commit 3c46074

Browse files
committed
run unittests with the python version that we have in our gate
1 parent ee42f83 commit 3c46074

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

graalpython/com.oracle.graal.python.test/src/python_unittests.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,12 @@ def scp(results_file_path, destination_path, destination_name=None):
186186

187187
def _run_unittest(test_path, timeout, with_cpython=False):
188188
if with_cpython:
189-
cmd = ["python3", test_path, "-v"]
189+
exe = os.environ.get("PYTHON3_HOME", None)
190+
if exe:
191+
exe = os.path.join(exe, "python")
192+
else:
193+
exe = "python3"
194+
cmd = [exe, test_path, "-v"]
190195
else:
191196
cmd = ["mx", "python3", "--python.CatchAllExceptions=true", test_path, "-v"]
192197
_, output, msg = _run_cmd(cmd, timeout)

0 commit comments

Comments
 (0)