Skip to content

Commit eef4b27

Browse files
committed
set CAPI path since we're collecting coverage from source tree
1 parent 1eed7a5 commit eef4b27

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ def python_coverage(args):
12601260
{"args": ["--python.EmulateJython"], "paths": ["test_interop.py"]},
12611261
# {"args": ["--llvm.managed"]},
12621262
{
1263-
"args": ["-v", "--python.WithThread=true", "--python.CAPI=" + _get_capi_home()],
1263+
"args": ["-v", "--python.WithThread=true"],
12641264
"paths": ["test_tagged_unittests.py"],
12651265
"tagged": True
12661266
},
@@ -1284,6 +1284,7 @@ def python_coverage(args):
12841284
]
12851285
with set_env(GRAAL_PYTHON_ARGS=" ".join(extra_args)):
12861286
with _dev_pythonhome_context(): # run all our tests in the dev-home, so that lcov has consistent paths
1287+
kwds["args"].append("--python.CAPI=" + _get_capi_home())
12871288
if kwds.pop("tagged", False):
12881289
with set_env(ENABLE_CPYTHON_TAGGED_UNITTESTS="true", ENABLE_THREADED_GRAALPYTEST="true"):
12891290
run_python_unittests(executable, **kwds)

0 commit comments

Comments
 (0)