Skip to content

Commit 72517fd

Browse files
committed
run cpyext tests with opaque FS
1 parent 3ba7db0 commit 72517fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,10 @@ def gate_unittests(args=[], subdir=""):
348348
# TODO: re-enable when python3 is available on darwin
349349
mx.log("Running tests with CPython")
350350
mx.run(["python3"] + test_args, nonZeroIsFatal=True)
351+
if platform.system() != 'Darwin' and not pre_args and not post_args and not subdir:
352+
mx.log("Running cpyext tests with opaque FS")
353+
test_args = [_graalpytest_driver, "-v", _test_project + "src/tests/cpyext/"]
354+
mx.command_function("python")(["--python.CatchAllExceptions=true", "--python.OpaqueFilesystem"] + pre_args + test_args + post_args)
351355

352356

353357
def run_python_unittests(python_binary, args=[], aot_compatible=True, exclude=[]):

0 commit comments

Comments
 (0)