8000 fix transition py test · tanan/rules_python@d1f4895 · GitHub
[go: up one dir, main page]

Skip to content

Commit d1f4895

Browse files
committed
fix transition py test
1 parent 7e4d19c commit d1f4895

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

python/config_settings/transition.bzl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,14 @@ _COMMON_ATTRS = {
124124
),
125125
}
126126

127+
_PY_TEST_ATTRS = {
128+
"_lcov_merger": attr.label(
129+
default = configuration_field(fragment = "coverage", name = "output_generator"),
130+
executable = True,
131+
cfg = "exec",
132+
),
133+
}
134+
127135
_transition_py_binary = rule(
128136
_transition_py_impl,
129137
attrs = _COMMON_ATTRS,
@@ -133,7 +141,7 @@ _transition_py_binary = rule(
133141

134142
_transition_py_test = rule(
135143
_transition_py_impl,
136-
attrs = _COMMON_ATTRS,
144+
attrs = _COMMON_ATTRS | _PY_TEST_ATTRS,
137145
cfg = _transition_python_version,
138146
test = True,
139147
)

0 commit comments

Comments
 (0)
0