Skip to content
Snippets Groups Projects
Commit 946ce7a4 authored by Craig Tiller's avatar Craig Tiller
Browse files

Allow flagging tests that arent dependent on polling strategy

parent 54a7b8d6
No related branches found
No related tags found
No related merge requests found
...@@ -51,6 +51,7 @@ def mako_plugin(dictionary): ...@@ -51,6 +51,7 @@ def mako_plugin(dictionary):
'exclude_configs': [], 'exclude_configs': [],
'platforms': ['linux', 'mac', 'windows', 'posix'], 'platforms': ['linux', 'mac', 'windows', 'posix'],
'ci_platforms': ['linux', 'mac', 'windows', 'posix'], 'ci_platforms': ['linux', 'mac', 'windows', 'posix'],
'uses_polling': False,
'flaky': False, 'flaky': False,
'language': 'c', 'language': 'c',
'cpu_cost': 0.1, 'cpu_cost': 0.1,
......
...@@ -159,12 +159,15 @@ class CLanguage(object): ...@@ -159,12 +159,15 @@ class CLanguage(object):
'posix': ['all'], 'posix': ['all'],
'linux': ['poll', 'legacy'] 'linux': ['poll', 'legacy']
} }
for polling_strategy in POLLING_STRATEGIES[self.platform]: for target in binaries:
env={'GRPC_DEFAULT_SSL_ROOTS_FILE_PATH': polling_strategies = (POLLING_STRATEGIES[self.platform]
_ROOT + '/src/core/lib/tsi/test_creds/ca.pem', if target.get('uses_polling', True)
'GRPC_POLLING_STRATEGY': polling_strategy} else ['all'])
shortname_ext = '' if polling_strategy=='all' else ' polling=%s' % polling_strategy for polling_strategy in polling_strategies:
for target in binaries: env={'GRPC_DEFAULT_SSL_ROOTS_FILE_PATH':
_ROOT + '/src/core/lib/tsi/test_creds/ca.pem',
'GRPC_POLLING_STRATEGY': polling_strategy}
shortname_ext = '' if polling_strategy=='all' else ' polling=%s' % polling_strategy
if self.config.build_config in target['exclude_configs']: if self.config.build_config in target['exclude_configs']:
continue continue
if self.platform == 'windows': if self.platform == 'windows':
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment