@@ -376,7 +376,7 @@ def _dev_pythonhome():
376376
377377def punittest (ars , report = False ):
378378 """
379- Runs GraalPython junit tests, TCK, and memory leak tests, which can be skipped using --no-leak-tests.
379+ Runs GraalPython junit tests and memory leak tests, which can be skipped using --no-leak-tests.
380380 Pass --regex to further filter the junit and TSK tests. GraalPy tests are always run in two configurations:
381381 with language home on filesystem and with language home served from the Truffle resources.
382382 """
@@ -407,9 +407,6 @@ def __str__(self):
407407 configs += [
408408 TestConfig ("junit" , vm_args + graalpy_tests + args , True ),
409409 TestConfig ("junit" , vm_args + graalpy_tests + args , False ),
410- # TCK suite is not compatible with the PythonMxUnittestConfig,
411- # so it must have its own run and the useResources config is ignored
412- TestConfig ("tck" , vm_args + ['com.oracle.truffle.tck.tests' ] + args , False ),
413410 ]
414411 if mx .is_linux ():
415412 # see GR-60656 and GR-60658 for what's missing in darwin and windows support
@@ -1207,7 +1204,7 @@ def graalpython_gate_runner(args, tasks):
12071204 "--verbose" ,
12081205 "--no-leak-tests" ,
12091206 "--regex" ,
1210- r'((com\.oracle\.truffle\.tck\.tests)|( graal\.python\.test\.integration)|(graal\.python\.test\.(builtin|interop|util)))'
1207+ r'((graal\.python\.test\.integration)|(graal\.python\.test\.(builtin|interop|util)))'
12111208 ],
12121209 report = True
12131210 )
@@ -1221,6 +1218,21 @@ def graalpython_gate_runner(args, tasks):
12211218 punittest (['--verbose' , '--no-leak-tests' , '--regex' , 'com.oracle.graal.python.test.advanced.ExclusionsTest' ])
12221219 finally :
12231220 jdk .java_args_pfx = prev
1221+ if report ():
1222+ tmpfile = tempfile .NamedTemporaryFile (delete = False , suffix = '.json.gz' )
1223+ try :
1224+ # Cannot use context manager because windows doesn't allow
1225+ # make_test_report to read the file while it is open for
1226+ # writing
1227+ mx .command_function ('tck' )([f'--json-results={ tmpfile .name } ' ])
1228+ mx_gate .make_test_report (tmpfile .name , GraalPythonTags .junit + "-TCK" )
1229+ finally :
1230+ try :
1231+ os .unlink (tmpfile .name )
1232+ except :
1233+ pass # Sometimes this fails on windows
1234+ else :
1235+ mx .command_function ('tck' )()
12241236
12251237 # JUnit tests with Maven
12261238 with Task ('GraalPython integration JUnit with Maven' , tasks , tags = [GraalPythonTags .junit_maven ]) as task :
0 commit comments