Skip to content

Commit 8d24bfb

Browse files
committed
The unittest --use-graalvm option is only available if /compiler is imported
* This is the same logic as in punittest() above.
1 parent f75f51d commit 8d24bfb

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
@@ -1400,7 +1400,8 @@ def graalpython_gate_runner(args, tasks):
14001400
run_mx(["build"], env={**os.environ, **LATEST_JAVA_HOME})
14011401
args =['--verbose']
14021402
vm_args = ['-Dpolyglot.engine.WarnInterpreterOnly=false']
1403-
mx_unittest.unittest(vm_args + ['org.graalvm.python.embedding.vfs.test'] + args + ["--use-graalvm"])
1403+
has_compiler = bool(mx.suite('compiler', fatalIfMissing=False))
1404+
mx_unittest.unittest(vm_args + ['org.graalvm.python.embedding.vfs.test'] + args + (["--use-graalvm"] if has_compiler else []))
14041405

14051406
with Task('GraalPython Python tests', tasks, tags=[GraalPythonTags.tagged]) as task:
14061407
if task:

0 commit comments

Comments
 (0)