@@ -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,21 @@ 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
+ 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' )()
1224
1236
1225
1237
# JUnit tests with Maven
1226
1238
with Task ('GraalPython integration JUnit with Maven' , tasks , tags = [GraalPythonTags .junit_maven ]) as task :
0 commit comments