|
34 | 34 | import re
|
35 | 35 | import shutil
|
36 | 36 | import sys
|
| 37 | + |
37 | 38 | PY3 = sys.version_info[0] == 3 # compatibility between Python versions
|
38 | 39 | import tempfile
|
39 | 40 | if PY3:
|
@@ -225,7 +226,16 @@ def retag_unittests(args):
|
225 | 226 | parser.add_argument('--upload-results-to')
|
226 | 227 | parsed_args, remaining_args = parser.parse_known_args(args)
|
227 | 228 | with set_env(ENABLE_CPYTHON_TAGGED_UNITTESTS="true"):
|
228 |
| - python(["graalpython/com.oracle.graal.python.test/src/tests/test_tagged_unittests.py", '--retag'] + remaining_args) |
| 229 | + with _dev_pythonhome_context(): |
| 230 | + args = [ |
| 231 | + '--experimental-options=true', |
| 232 | + '--python.CatchAllExceptions=true', |
| 233 | + '--python.WithThread=true', |
| 234 | + '--python.CAPI=' + _get_capi_home(), |
| 235 | + 'graalpython/com.oracle.graal.python.test/src/tests/test_tagged_unittests.py', |
| 236 | + '--retag', |
| 237 | + ] |
| 238 | + mx.run([python_gvm()] + args + remaining_args) |
229 | 239 | if parsed_args.upload_results_to:
|
230 | 240 | with tempfile.TemporaryDirectory(prefix='graalpython-retagger-') as d:
|
231 | 241 | filename = os.path.join(d, 'unittest-tags-{}.tar.bz2'.format(sys.platform))
|
@@ -498,7 +508,7 @@ def graalpython_gate_runner(args, tasks):
|
498 | 508 | with Task('GraalPython Python tests', tasks, tags=[GraalPythonTags.tagged]) as task:
|
499 | 509 | if task:
|
500 | 510 | with set_env(ENABLE_CPYTHON_TAGGED_UNITTESTS="true", ENABLE_THREADED_GRAALPYTEST="true"):
|
501 |
| - # the tagged unittests must ron in the dev_pythonhome and using |
| 511 | + # the tagged unittests must run in the dev_pythonhome and using |
502 | 512 | # the dev CAPI, because that's where the tags are
|
503 | 513 | with _dev_pythonhome_context():
|
504 | 514 | run_python_unittests(
|
|
0 commit comments