File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1457,6 +1457,7 @@ def python_coverage(args):
1457
1457
env = os .environ .copy ()
1458
1458
env ['GRAAL_PYTHON_ARGS' ] = " " .join (extra_args )
1459
1459
# run all our tests in the dev-home, so that lcov has consistent paths
1460
+ # TODO tests with virtualenv won't pick this up
1460
1461
env ['PYTHONPATH' ] = os .path .join (_dev_pythonhome (), 'lib-python/3' )
1461
1462
if kwds .pop ("tagged" , False ):
1462
1463
run_tagged_unittests (executable , env = env )
@@ -1500,7 +1501,7 @@ def python_coverage(args):
1500
1501
1501
1502
# merge all generated lcov files
1502
1503
for f in os .listdir (SUITE .dir ):
1503
- if f .endswith (".lcov" ):
1504
+ if f .endswith (".lcov" ) and os . path . getsize ( f ) :
1504
1505
cmdargs += ["-a" , f ]
1505
1506
1506
1507
mx .run (cmdargs )
You can’t perform that action at this time.
0 commit comments