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 #17568

Closes #17587.

PiperOrigin-RevId: 512563828
Change-Id: If95b26f5b86b2848dbaaf6129d1daa1538a22826
  • Loading branch information
thirtyseven authored and Copybara-Service committed Feb 27, 2023
1 parent 532a52e commit 4a6d056
Showing 1 changed file with 4 additions and 1 deletion.
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 4a6d056

Please sign in to comment.