Skip to content

Commit 7a8bd7f

Browse files
committed
[GR-29753] Make sure test_interop and test_jarray run on jvm launchers
1 parent 4c9b855 commit 7a8bd7f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ def is_included(path):
577577
return testfiles
578578

579579

580-
def run_python_unittests(python_binary, args=None, paths=None, aot_compatible=True, exclude=None, env=None):
580+
def run_python_unittests(python_binary, args=None, paths=None, aot_compatible=False, exclude=None, env=None):
581581
# ensure that the test distribution is up-to-date
582582
mx.command_function("build")(["--dep", "com.oracle.graal.python.test"])
583583

@@ -623,7 +623,7 @@ def run_python_unittests(python_binary, args=None, paths=None, aot_compatible=Tr
623623
# jacoco only dumps the data on exit, and when we run all our unittests
624624
# at once it generates so much data we run out of heap space
625625
for testfile in testfiles:
626-
mx.run([launcher_path] + args + [testfile], nonZeroIsFatal=True, env=env)
626+
mx.run([launcher_path] + args + [testfile], nonZeroIsFatal=False, env=env)
627627
finally:
628628
shutil.move(launcher_path_bak, launcher_path)
629629
else:
@@ -717,11 +717,11 @@ def graalpython_gate_runner(args, tasks):
717717
# Unittests on SVM
718718
with Task('GraalPython tests on SVM', tasks, tags=[GraalPythonTags.svmunit]) as task:
719719
if task:
720-
run_python_unittests(python_svm())
720+
run_python_unittests(python_svm(), aot_compatible=True)
721721

722722
with Task('GraalPython sandboxed tests on SVM', tasks, tags=[GraalPythonTags.svmunit_sandboxed]) as task:
723723
if task:
724-
run_python_unittests(python_svm(["sandboxed"]))
724+
run_python_unittests(python_svm(["sandboxed"]), aot_compatible=True)
725725

726726
with Task('GraalPython license header update', tasks, tags=[GraalPythonTags.license]) as task:
727727
if task:

0 commit comments

Comments
 (0)