Skip to content

Commit d632c06

Browse files
committed
Fix java_args overriding in mx_graalpython
1 parent 8d452f4 commit d632c06

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,8 @@ def graalpython_gate_runner(_, tasks):
13351335
jdk = mx.get_jdk()
13361336
prev = jdk.java_args_pfx
13371337
try:
1338-
jdk.java_args_pfx = (mx._opts.java_args or []) + ['-Dpython.WithoutPlatformAccess=true']
1338+
java_args = shlex.split(mx._opts.java_args) if mx._opts.java_args else []
1339+
jdk.java_args_pfx = java_args + ['-Dpython.WithoutPlatformAccess=true']
13391340
punittest(['--verbose', '--no-leak-tests', '--regex', 'com.oracle.graal.python.test.advanced.ExclusionsTest'])
13401341
finally:
13411342
jdk.java_args_pfx = prev

0 commit comments

Comments
 (0)