Skip to content

Commit 36f9aa6

Browse files
committed
fix standalone binary test
1 parent a6667b0 commit 36f9aa6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,10 @@ def graalpython_gate_runner(args, tasks):
12291229
if "hello standalone" not in out.data:
12301230
mx.abort('Output from generated SVM image "' + svm_image + '" did not match success pattern:\n' + success)
12311231

1232-
mx.run([svm_image, "-m", "standalone", "binary", "-Os", "-o", os.path.join(tmpdir, "directlauncher"), "-m", tmpmain])
1232+
mx.run(
1233+
[svm_image, "-m", "standalone", "binary", "-Os", "-o", os.path.join(tmpdir, "directlauncher"), "-m", tmpmain],
1234+
env=dict(tuple(os.environ.items()) + (("JAVA_HOME", os.path.dirname(os.path.dirname(svm_image))),))
1235+
)
12331236
out = mx.OutputCapture()
12341237
mx.run(
12351238
[os.path.join(tmpdir, "directlauncher")],

0 commit comments

Comments
 (0)