make test sharding work for poller-specific tests

pull/21294/head
Jan Tattermusch 5 years ago
parent b4d6916552
commit 39f6bb152e
  1. 3
      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"]) copts = if_mac(["-DGRPC_CFSTREAM"])
if language.upper() == "C": if language.upper() == "C":
copts = copts + if_not_windows(["-std=c99"]) 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 = { args = {
"srcs": srcs, "srcs": srcs,
"args": args, "args": args,
@ -235,6 +237,7 @@ def grpc_cc_test(name, srcs = [], deps = [], external_deps = [], args = [], data
tags = (tags + ["no_windows", "no_mac"]), tags = (tags + ["no_windows", "no_mac"]),
exec_compatible_with = exec_compatible_with, exec_compatible_with = exec_compatible_with,
exec_properties = exec_properties, exec_properties = exec_properties,
shard_count = shard_count,
) )
else: else:
# the test behavior doesn't depend on polling, just generate the test # the test behavior doesn't depend on polling, just generate the test

Loading…
Cancel
Save