File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,8 @@ Unreleased changes template.
7878
7979{#v0-0-0-added}
8080### Added
81- * Nothing added.
81+ * (coverage) New COVERAGEPY_IGNORE_ERRORS environment var that adds the ` --ignore-errors `
82+ flag to coverage.py when producing the lcov output file.
8283
8384{#v0-0-0-removed}
8485### Removed
Original file line number Diff line number Diff line change @@ -461,6 +461,11 @@ relative_files = True
461461 kparams['stdout'] = sys.stderr
462462 kparams['stderr'] = sys.stderr
463463
464+ # Workaround for coveragepy having weird errors.
465+ # See: https://github.com/bazelbuild/rules_python/issues/2575
466+ if os.getenv("COVERAGEPY_IGNORE_ERRORS"):
467+ params.append("--ignore-errors")
468+
464469 ret_code = subprocess.call(
465470 params,
466471 **kparams
You can’t perform that action at this time.
0 commit comments