Allow flagging tests that arent dependent on polling strategy

pull/5456/head
Craig Tiller 9 years ago
parent 54a7b8d625
commit 946ce7a46a
  1. 1
      tools/buildgen/plugins/make_fuzzer_tests.py
  2. 15
      tools/run_tests/run_tests.py
  3. 3345
      tools/run_tests/tests.json

@ -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):
'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':

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save