From 39f6bb152ee01cc9663aad36517952847bcb11f2 Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Tue, 26 Nov 2019 06:22:00 -0500 Subject: [PATCH] make test sharding work for poller-specific tests --- bazel/grpc_build_system.bzl | 3 +++ 1 file changed, 3 insertions(+) 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