Skip to content

Commit 35f2903

Browse files
committed
only include files in our graalpython sources
1 parent bf31ef4 commit 35f2903

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,6 +1269,7 @@ def python_coverage(args):
12691269
if os.path.exists(outputlcov):
12701270
os.unlink(outputlcov)
12711271
cmdargs = ["/usr/bin/env", "lcov", "-o", outputlcov]
1272+
prefix = os.path.join(SUITE.dir, "graalpython")
12721273
for kwds in variants:
12731274
variant_str = re.sub(r"[^a-zA-Z]", "_", str(kwds))
12741275
for pattern in ["py"]:
@@ -1278,7 +1279,7 @@ def python_coverage(args):
12781279
extra_args = [
12791280
"--coverage",
12801281
"--coverage.TrackInternal",
1281-
"--coverage.FilterFile=*.%s" % pattern,
1282+
"--coverage.FilterFile=%s/*.%s" % (prefix, pattern),
12821283
"--coverage.Output=lcov",
12831284
"--coverage.OutputFile=%s" % outfile,
12841285
]
@@ -1311,7 +1312,7 @@ def python_coverage(args):
13111312
datetime.datetime.fromtimestamp(info['author-ts']).strftime('%Y-%m-%d_%H_%M'),
13121313
rev[:7],
13131314
)
1314-
mx.run(["/usr/bin/env", "genhtml", "--ignore-errors", "source", "-o", coverage_dir, outputlcov])
1315+
mx.run(["/usr/bin/env", "genhtml", "--prefix", prefix, "--ignore-errors", "source", "-o", coverage_dir, outputlcov])
13151316
if args.truffle_upload_url:
13161317
if not args.truffle_upload_url.endswith("/"):
13171318
args.truffle_upload_url = args.truffle_upload_url + "/"

0 commit comments

Comments
 (0)