Skip to content

Commit a42aaa1

Browse files
committed
configure libpolyglot graalvm test for IO access
1 parent 8ba7d69 commit a42aaa1

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,11 @@ def run_shared_lib_test(args=None):
516516
}
517517
status = poly_context_builder_option(isolate_thread, builder, "python.VerboseFlag", "true");
518518
if (status != poly_ok) {
519-
return status;
519+
return status;
520+
}
521+
status = poly_context_builder_allow_io(isolate_thread, builder, true);
522+
if (status != poly_ok) {
523+
return status;
520524
}
521525
status = poly_context_builder_build(isolate_thread, builder, &context);
522526
if (status != poly_ok) {
@@ -595,7 +599,9 @@ def run_shared_lib_test(args=None):
595599
mx.log("Running " + progname + " with LD_LIBRARY_PATH " + svm_lib_path)
596600
mx.run(["ls", "-l", progname])
597601
mx.run(["ls", "-l", svm_lib_path])
598-
mx.run([progname], env={"LD_LIBRARY_PATH": svm_lib_path, "GRAAL_PYTHONHOME": os.environ["GRAAL_PYTHONHOME"]})
602+
run_env = {"LD_LIBRARY_PATH": svm_lib_path, "GRAAL_PYTHONHOME": os.environ["GRAAL_PYTHONHOME"]}
603+
print(run_env)
604+
mx.run([progname], env=run_env)
599605
finally:
600606
try:
601607
os.unlink(progname)

0 commit comments

Comments
 (0)