Skip to content

Commit 1b36a26

Browse files
authored
fix: Allow cuda_test to specify the data attribute. (#314)
The native.cc_test rule has a `data` attribute that is not exposed in the cuda_test rule. This change allows the cuda_test rule to specify the `data` attribute, and plumb it down to the native.cc_test rule.
1 parent 6e117d0 commit 1b36a26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cuda/private/macros/cuda_test.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def cuda_test(name, **attrs):
1414
}
1515

1616
# https://bazel.build/reference/be/common-definitions?hl=en#common-attributes-tests
17-
cc_test_only_attrs = ["args", "env", "env_inherit", "size", "timeout", "flaky", "shard_count", "local"]
17+
cc_test_only_attrs = ["args", "env", "env_inherit", "size", "timeout", "flaky", "shard_count", "local", "data"]
1818

1919
cuda_library_attrs = {k: v for k, v in attrs.items() if k not in cc_test_only_attrs}
2020
for attr in cuda_library_only_attrs_defaults:

0 commit comments

Comments
 (0)