Skip to content

Commit ae62c6b

Browse files
committed
fix other test
1 parent 0777602 commit ae62c6b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/cc/py_cc_toolchain/py_cc_toolchain_tests.bzl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ def _test_py_cc_toolchain(name):
2828
impl = _test_py_cc_toolchain_impl,
2929
target = "//tests/support/cc_toolchains:fake_py_cc_toolchain_impl",
3030
attrs = {
31-
"header": attr.label(
32-
default = "//tests/support/cc_toolchains:fake_header.h",
33-
allow_single_file = True,
31+
"header_files": attr.label_list(
32+
default = ["//tests/support/cc_toolchains:py_header_files"],
33+
allow_files = True,
3434
),
3535
},
3636
)
@@ -50,12 +50,12 @@ def _test_py_cc_toolchain_impl(env, target):
5050
cc_info = headers_providers.get("CcInfo", factory = cc_info_subject)
5151

5252
compilation_context = cc_info.compilation_context()
53-
compilation_context.direct_headers().contains_exactly([
54-
env.ctx.file.header,
55-
])
56-
compilation_context.direct_public_headers().contains_exactly([
57-
env.ctx.file.header,
58-
])
53+
compilation_context.direct_headers().contains_exactly(
54+
env.ctx.files.header_files,
55+
)
56+
compilation_context.direct_public_headers().contains_exactly(
57+
env.ctx.files.header_files,
58+
)
5959

6060
# NOTE: The include dir gets added twice, once for the source path,
6161
# and once for the config-specific path, but we don't care about that.

0 commit comments

Comments
 (0)