@@ -376,7 +376,7 @@ def _dev_pythonhome():
376
376
377
377
def punittest (ars , report = False ):
378
378
"""
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.
380
380
Pass --regex to further filter the junit and TSK tests. GraalPy tests are always run in two configurations:
381
381
with language home on filesystem and with language home served from the Truffle resources.
382
382
"""
@@ -407,9 +407,6 @@ def __str__(self):
407
407
configs += [
408
408
TestConfig ("junit" , vm_args + graalpy_tests + args , True ),
409
409
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 ),
413
410
]
414
411
if mx .is_linux ():
415
412
# 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):
1207
1204
"--verbose" ,
1208
1205
"--no-leak-tests" ,
1209
1206
"--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)))'
1211
1208
],
1212
1209
report = True
1213
1210
)
@@ -1221,6 +1218,12 @@ def graalpython_gate_runner(args, tasks):
1221
1218
punittest (['--verbose' , '--no-leak-tests' , '--regex' , 'com.oracle.graal.python.test.advanced.ExclusionsTest' ])
1222
1219
finally :
1223
1220
jdk .java_args_pfx = prev
1221
+ if report ():
1222
+ with tempfile .NamedTemporaryFile (delete = True , suffix = '.json.gz' ) as tmpfile :
1223
+ mx .command_function ('tck' )([f'--json-results={ tmpfile .name } ' ])
1224
+ mx_gate .make_test_report (tmpfile .name , GraalPythonTags .junit + "-TCK" )
1225
+ else :
1226
+ mx .command_function ('tck' )()
1224
1227
1225
1228
# JUnit tests with Maven
1226
1229
with Task ('GraalPython integration JUnit with Maven' , tasks , tags = [GraalPythonTags .junit_maven ]) as task :
0 commit comments