Skip to content

Commit 53eacae

Browse files
committed
workaround for jacoco
1 parent d6d950a commit 53eacae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,10 @@ def is_included(path):
382382
args += [_graalpytest_driver(), "-v"]
383383

384384
agent_args = " ".join(mx_gate.get_jacoco_agent_args() or [])
385+
# if we leave the excludes, the string is too long and it will be ignored by
386+
# the JVM. See
387+
# https://github.com/graalvm/graal-jvmci-8/blob/fc8a493bac33d35405c4361a134a812222c3d14b/src/share/vm/runtime/arguments.cpp#L3841
388+
agent_args = re.sub("excludes=[^,]+,", "", agent_args)
385389
if agent_args:
386390
# jacoco only dumps the data on exit, and when we run all our unittests
387391
# at once it generates so much data we run out of heap space

0 commit comments

Comments
 (0)