Skip to content

Commit 91c12f8

Browse files
committed
Fix passing subprocess args
1 parent 9fa9d7d commit 91c12f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ def graalpytest(args):
10071007
gp_args = ["--vm.ea", "--vm.esa", "--experimental-options=true", "--python.EnableDebuggingBuiltins"]
10081008
mx.log(f"Executable seems to be GraalPy, prepending arguments: {gp_args}")
10091009
python_args += gp_args
1010-
runner_args += ['--subprocess-args', shlex.join(python_args)]
1010+
runner_args.append(f'--subprocess-args={shlex.join(python_args)}')
10111011
cmd_args = [*python_args, _python_test_runner(), *runner_args]
10121012
delete_bad_env_keys(env)
10131013
if is_graalpy:
@@ -1086,7 +1086,7 @@ def run_python_unittests(python_binary, args=None, paths=None, exclude=None, env
10861086
if use_pytest:
10871087
args += ["-m", "pytest", "-v", "--assert=plain", "--tb=native"]
10881088
else:
1089-
args += [_python_test_runner(), "--durations", "25", "-n", str(parallel), "--subprocess-args", shlex.join(args)]
1089+
args += [_python_test_runner(), "--durations", "25", "-n", str(parallel), f"--subprocess-args={shlex.join(args)}"]
10901090

10911091
if runner_args:
10921092
args += runner_args

0 commit comments

Comments
 (0)