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

Allow restricting platforms for certain tests

parent 95cd7509
No related branches found
No related tags found
No related merge requests found
......@@ -854,6 +854,9 @@
"grpc",
"gpr_test_util",
"gpr"
],
"platforms": [
"posix"
]
},
{
......
......@@ -4,6 +4,7 @@ import json
${json.dumps([{"name": tgt.name,
"language": tgt.language,
"platforms": tgt.get("platforms", ["windows", "posix"]),
"flaky": tgt.get("flaky", False)}
for tgt in targets
if tgt.get('run', True) and tgt.build == 'test'],
......
......@@ -102,9 +102,16 @@ class CLanguage(object):
def __init__(self, make_target, test_lang):
self.make_target = make_target
if platform.system() == 'Windows':
plat = 'windows'
else:
plat = 'posix'
with open('tools/run_tests/tests.json') as f:
js = json.load(f)
self.binaries = [tgt for tgt in js if tgt['language'] == test_lang]
self.binaries = [tgt
for tgt in js
if tgt['language'] == test_lang and
plat in tgt['platforms']]
def test_specs(self, config, travis):
out = []
......@@ -191,6 +198,7 @@ class PythonLanguage(object):
def __str__(self):
return 'python'
class RubyLanguage(object):
def test_specs(self, config, travis):
......@@ -208,6 +216,7 @@ class RubyLanguage(object):
def __str__(self):
return 'ruby'
class CSharpLanguage(object):
def test_specs(self, config, travis):
......@@ -225,6 +234,7 @@ class CSharpLanguage(object):
def __str__(self):
return 'csharp'
class Build(object):
def test_specs(self, config, travis):
......
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