diff --git a/bazel/grpc_build_system.bzl b/bazel/grpc_build_system.bzl index 033a0051cce..7bb6b8bdb98 100644 --- a/bazel/grpc_build_system.bzl +++ b/bazel/grpc_build_system.bzl @@ -193,6 +193,8 @@ def grpc_cc_test(name, srcs = [], deps = [], external_deps = [], args = [], data copts = if_mac(["-DGRPC_CFSTREAM"]) if language.upper() == "C": copts = copts + if_not_windows(["-std=c99"]) + # NOTE: these attributes won't be used for the poller-specific versions of a test + # automatically, you need to set them explicitly (if applicable) args = { "srcs": srcs, "args": args, @@ -235,6 +237,7 @@ def grpc_cc_test(name, srcs = [], deps = [], external_deps = [], args = [], data tags = (tags + ["no_windows", "no_mac"]), exec_compatible_with = exec_compatible_with, exec_properties = exec_properties, + shard_count = shard_count, ) else: # the test behavior doesn't depend on polling, just generate the test