diff --git a/test/core/end2end/generate_tests.bzl b/test/core/end2end/generate_tests.bzl index 64827cc3848..75b59996474 100755 --- a/test/core/end2end/generate_tests.bzl +++ b/test/core/end2end/generate_tests.bzl @@ -33,7 +33,8 @@ def _fixture_options( supports_write_buffering = True, client_channel = True, supports_msvc = True, - flaky_tests = []): + flaky_tests = [], + tags = []): return struct( fullstack = fullstack, includes_proxy = includes_proxy, @@ -50,6 +51,7 @@ def _fixture_options( supports_msvc = supports_msvc, _platforms = _platforms, flaky_tests = flaky_tests, + tags = tags, ) # maps fixture name to whether it requires the security library @@ -112,6 +114,7 @@ END2END_FIXTURES = { secure = True, dns_resolver = False, _platforms = ["linux", "mac", "posix"], + tags = ["requires-net:ipv4", "requires-net:loopback"], ), "h2_local_ipv6": _fixture_options( secure = True, @@ -423,7 +426,7 @@ def grpc_end2end_tests(): "//:gpr", "//test/core/compression:args_utils", ], - tags = _platform_support_tags(fopt), + tags = _platform_support_tags(fopt) + fopt.tags, ) for t, topt in END2END_TESTS.items(): @@ -440,7 +443,7 @@ def grpc_end2end_tests(): "$(location %s_test)" % f, t, ], - tags = ["no_linux"] + _platform_support_tags(fopt), + tags = ["no_linux"] + _platform_support_tags(fopt) + fopt.tags, flaky = t in fopt.flaky_tests, ) @@ -456,6 +459,6 @@ def grpc_end2end_tests(): t, poller, ], - tags = ["no_mac", "no_windows"], + tags = ["no_mac", "no_windows"] + fopt.tags, flaky = t in fopt.flaky_tests, )