Skip to content

Commit 7f1556c

Browse files
committed
Configure coverage helpers for test exec group
They are run on the test action's execution platform, which is resolved for the `test` exec group, not the default one.
1 parent e14cd37 commit 7f1556c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/private/attributes.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,14 +397,14 @@ COVERAGE_ATTRS = {
397397
"_collect_cc_coverage": lambda: attrb.Label(
398398
default = "@bazel_tools//tools/test:collect_cc_coverage",
399399
executable = True,
400-
cfg = "exec",
400+
cfg = config.exec(exec_group = "test"),
401401
),
402402
# Magic attribute to make coverage work. There's no
403403
# docs about this; see TestActionBuilder.java
404404
"_lcov_merger": lambda: attrb.Label(
405405
default = configuration_field(fragment = "coverage", name = "output_generator"),
406406
executable = True,
407-
cfg = "exec",
407+
cfg = config.exec(exec_group = "test"),
408408
),
409409
}
410410

0 commit comments

Comments
 (0)