@@ -758,7 +758,7 @@ def patch_batch_launcher(launcher_path, jvm_args):
758
758
launcher .writelines (lines )
759
759
760
760
761
- def run_hpy_unittests (python_binary , args = None ):
761
+ def run_hpy_unittests (python_binary , args = None , include_native = True ):
762
762
args = [] if args is None else args
763
763
with tempfile .TemporaryDirectory (prefix = 'hpy-test-site-' ) as d :
764
764
env = os .environ .copy ()
@@ -783,7 +783,10 @@ def run(self):
783
783
except Exception as e : # pylint: disable=broad-except;
784
784
self .exc = e
785
785
786
- for abi in ['cpython' , 'universal' , 'debug' , 'nfi' ]:
786
+ abi_list = ['cpython' , 'universal' , 'debug' ]
787
+ if include_native :
788
+ abi_list .append ('nfi' )
789
+ for abi in abi_list :
787
790
env ["TEST_HPY_ABI" ] = abi
788
791
threads .append (RaisingThread (target = run_python_unittests , args = (python_binary , ), kwargs = {
789
792
"args" : args , "paths" : [_hpy_test_root ()], "env" : env .copy (), "use_pytest" : True , "lock" : lock ,
@@ -855,7 +858,7 @@ def graalpython_gate_runner(args, tasks):
855
858
856
859
with Task ('GraalPython HPy sandboxed tests' , tasks , tags = [GraalPythonTags .unittest_hpy_sandboxed ]) as task :
857
860
if task :
858
- run_hpy_unittests (python_managed_svm ())
861
+ run_hpy_unittests (python_managed_svm (), include_native = False )
859
862
860
863
with Task ('GraalPython posix module tests' , tasks , tags = [GraalPythonTags .unittest_posix ]) as task :
861
864
if task :
0 commit comments