Skip to content

Commit

Permalink
Debug 2040 (#2042)
Browse files Browse the repository at this point in the history
Just to check if profraw is generated in coverage_run()
  • Loading branch information
tokatoka authored Sep 3, 2024
1 parent 2f99007 commit e6b60d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions experiment/measurer/run_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def do_coverage_run( # pylint: disable=too-many-locals
"""Does a coverage run of |coverage_binary| on |new_units_dir|. Writes
the result to |profraw_file_pattern|."""
with tempfile.TemporaryDirectory() as merge_dir:
logger.info("coverage binary exists?: %s", os.path.exists(os.path.abspath(coverage_binary)))
command = [
coverage_binary, '-merge=1', '-dump_coverage=1',
f'-artifact_prefix={crashes_dir}/', f'-timeout={UNIT_TIMEOUT}',
Expand All @@ -61,6 +62,8 @@ def do_coverage_run( # pylint: disable=too-many-locals
expect_zero=False,
kill_children=True,
timeout=MAX_TOTAL_TIME)

logger.info("coverage dir after coverage run %s", os.listdir(coverage_binary_dir))

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

0 comments on commit e6b60d5

Please sign in to comment.