Skip to content

Commit

Permalink
Add host transition to lcov_merger in Java version of py_test
Browse files Browse the repository at this point in the history
Fixes bazelbuild#17568

Closes bazelbuild#17587.

PiperOrigin-RevId: 512563828
Change-Id: If95b26f5b86b2848dbaaf6129d1daa1538a22826
  • Loading branch information
thirtyseven authored and fweikert committed May 25, 2023
1 parent 62df651 commit 46eae1b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ public RuleClass build(RuleClass.Builder builder, RuleDefinitionEnvironment env)
attr("$launcher", LABEL)
.cfg(ExecutionTransitionFactory.create())
.value(env.getToolsLabel("//tools/launcher:launcher")))
.add(attr(":lcov_merger", LABEL).value(BaseRuleClasses.getCoverageOutputGeneratorLabel()))
.add(
attr(":lcov_merger", LABEL)
.cfg(ExecutionTransitionFactory.create())
.value(BaseRuleClasses.getCoverageOutputGeneratorLabel()))
// Add the script as an attribute in order for py_test to output code coverage results for
// code covered by CC binaries invocations.
.add(
Expand Down

0 comments on commit 46eae1b

Please sign in to comment.