Skip to content

Commit b3a254d

Browse files
Add host transition to Java version of py_test (#17594)
Co-authored-by: kshyanashree <[email protected]>
1 parent 68e1924 commit b3a254d

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

Lines changed: 4 additions & 1 deletion
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)