Skip to content

Commit e6b60d5

Browse files
authored
Debug 2040 (#2042)
Just to check if profraw is generated in coverage_run()
1 parent 2f99007 commit e6b60d5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

experiment/measurer/run_coverage.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def do_coverage_run( # pylint: disable=too-many-locals
4444
"""Does a coverage run of |coverage_binary| on |new_units_dir|. Writes
4545
the result to |profraw_file_pattern|."""
4646
with tempfile.TemporaryDirectory() as merge_dir:
47+
logger.info("coverage binary exists?: %s", os.path.exists(os.path.abspath(coverage_binary)))
4748
command = [
4849
coverage_binary, '-merge=1', '-dump_coverage=1',
4950
f'-artifact_prefix={crashes_dir}/', f'-timeout={UNIT_TIMEOUT}',
@@ -61,6 +62,8 @@ def do_coverage_run( # pylint: disable=too-many-locals
6162
expect_zero=False,
6263
kill_children=True,
6364
timeout=MAX_TOTAL_TIME)
65+
66+
logger.info("coverage dir after coverage run %s", os.listdir(coverage_binary_dir))
6467

6568
if result.retcode != 0:
6669
logger.error('Coverage run failed.',

0 commit comments

Comments
 (0)