Skip to content

Commit 4da221a

Browse files
committed
fix(coverage): prevent issues when packages execute files in tmp dir.
Fixes bazel-contrib#2575
1 parent 33cb431 commit 4da221a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ Unreleased changes template.
7777
The related issue is [#908](https://github.com/bazelbuild/rules_python/issue/908).
7878
* (sphinxdocs) Do not crash when `tag_class` does not have a populated `doc` value.
7979
Fixes ([#2579](https://github.com/bazelbuild/rules_python/issues/2579)).
80+
* (coverage) Prevent coveragepy report issues when packages execute files in tmp dir.
81+
Fixes ([#2575](https://github.com/bazelbuild/rules_python/issues/2575)).
8082

8183
{#v0-0-0-added}
8284
### Added

python/private/python_bootstrap_template.txt

+3
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,9 @@ relative_files = True
461461
kparams['stdout'] = sys.stderr
462462
kparams['stderr'] = sys.stderr
463463

464+
# Prevent coveragepy report issues when packages execute files in tmp dir.
465+
params.append('--omit="$TMPDIR/*"')
466+
464467
ret_code = subprocess.call(
465468
params,
466469
**kparams

0 commit comments

Comments
 (0)