@@ -322,12 +322,15 @@ def is_included(path):
322
322
if not os .path .exists (path ):
323
323
# allow paths relative to the test root
324
324
path = os .path .join (_graalpytest_root (), path )
325
- for testfile in glob .glob (os .path .join (path , "**/test_*.py" )):
326
- if is_included (testfile ):
327
- testfiles .append (testfile )
328
- for testfile in glob .glob (os .path .join (path , "test_*.py" )):
329
- if is_included (testfile ):
330
- testfiles .append (testfile )
325
+ if os .path .isfile (path ):
326
+ testfiles .append (path )
327
+ else :
328
+ for testfile in glob .glob (os .path .join (path , "**/test_*.py" )):
329
+ if is_included (testfile ):
330
+ testfiles .append (testfile )
331
+ for testfile in glob .glob (os .path .join (path , "test_*.py" )):
332
+ if is_included (testfile ):
333
+ testfiles .append (testfile )
331
334
332
335
args += [_graalpytest_driver (), "-v" ]
333
336
args += testfiles
@@ -357,7 +360,7 @@ def graalpython_gate_runner(args, tasks):
357
360
with Task ('GraalPython Python tests' , tasks , tags = [GraalPythonTags .tagged ]) as task :
358
361
if task :
359
362
with set_env (ENABLE_CPYTHON_TAGGED_UNITTESTS = "true" ):
360
- gate_unittests ( subdir = "test_tagged_unittests.py" )
363
+ run_python_unittests ( python_gvm (), paths = [ "test_tagged_unittests.py" ] )
361
364
362
365
# Unittests on SVM
363
366
with Task ('GraalPython tests on SVM' , tasks , tags = [GraalPythonTags .svmunit ]) as task :
0 commit comments