@@ -1269,6 +1269,7 @@ def python_coverage(args):
1269
1269
if os .path .exists (outputlcov ):
1270
1270
os .unlink (outputlcov )
1271
1271
cmdargs = ["/usr/bin/env" , "lcov" , "-o" , outputlcov ]
1272
+ prefix = os .path .join (SUITE .dir , "graalpython" )
1272
1273
for kwds in variants :
1273
1274
variant_str = re .sub (r"[^a-zA-Z]" , "_" , str (kwds ))
1274
1275
for pattern in ["py" ]:
@@ -1278,7 +1279,7 @@ def python_coverage(args):
1278
1279
extra_args = [
1279
1280
"--coverage" ,
1280
1281
"--coverage.TrackInternal" ,
1281
- "--coverage.FilterFile=*.%s" % pattern ,
1282
+ "--coverage.FilterFile=%s/ *.%s" % ( prefix , pattern ) ,
1282
1283
"--coverage.Output=lcov" ,
1283
1284
"--coverage.OutputFile=%s" % outfile ,
1284
1285
]
@@ -1311,7 +1312,7 @@ def python_coverage(args):
1311
1312
datetime .datetime .fromtimestamp (info ['author-ts' ]).strftime ('%Y-%m-%d_%H_%M' ),
1312
1313
rev [:7 ],
1313
1314
)
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 ])
1315
1316
if args .truffle_upload_url :
1316
1317
if not args .truffle_upload_url .endswith ("/" ):
1317
1318
args .truffle_upload_url = args .truffle_upload_url + "/"
0 commit comments