Skip to content

Commit 4a6d056

Browse files
thirtysevencopybara-github
authored andcommitted
Add host transition to lcov_merger in Java version of py_test
Fixes bazelbuild#17568 Closes bazelbuild#17587. PiperOrigin-RevId: 512563828 Change-Id: If95b26f5b86b2848dbaaf6129d1daa1538a22826
1 parent 532a52e commit 4a6d056

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/com/google/devtools/build/lib/bazel/rules/python/BazelPyTestRule.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ public RuleClass build(RuleClass.Builder builder, RuleDefinitionEnvironment env)
5757
attr("$launcher", LABEL)
5858
.cfg(ExecutionTransitionFactory.create())
5959
.value(env.getToolsLabel("//tools/launcher:launcher")))
60-
.add(attr(":lcov_merger", LABEL).value(BaseRuleClasses.getCoverageOutputGeneratorLabel()))
60+
.add(
61+
attr(":lcov_merger", LABEL)
62+
.cfg(ExecutionTransitionFactory.create())
63+
.value(BaseRuleClasses.getCoverageOutputGeneratorLabel()))
6164
// Add the script as an attribute in order for py_test to output code coverage results for
6265
// code covered by CC binaries invocations.
6366
.add(

0 commit comments

Comments
 (0)