Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ Unreleased changes template.

{#v0-0-0-added}
### Added
* Nothing added.
* (coverage) New COVERAGEPY_IGNORE_ERRORS environment var that adds the `--ignore-errors`
flag to coverage.py when producing the lcov output file.

{#v0-0-0-removed}
### Removed
Expand Down
5 changes: 5 additions & 0 deletions python/private/python_bootstrap_template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,11 @@ relative_files = True
kparams['stdout'] = sys.stderr
kparams['stderr'] = sys.stderr

# Workaround for coveragepy having weird errors.
# See: https://github.com/bazelbuild/rules_python/issues/2575
if os.getenv("COVERAGEPY_IGNORE_ERRORS"):
params.append("--ignore-errors")

ret_code = subprocess.call(
params,
**kparams
Expand Down