Commit 2d81beb3 authored by sergiyb@chromium.org's avatar sergiyb@chromium.org

Convert dict of builders to list since we do not support properties anymore

R=akuegel@chromium.org
BUG=497243

Review URL: https://codereview.chromium.org/1183513004

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@295739 0039d316-1c4b-4281-b951-d872f2087c98
parent 40cdc99c
......@@ -113,16 +113,13 @@ def CMDbuilders(parser, args):
The output is a dictionary in the following format:
{
'master_name': {
'builder_name': {
'custom_property': 'value',
'testfilter': 'compile'
},
'another_builder': {}
},
'another_master': {
'third_builder': {}
}
'master_name': [
'builder_name',
'another_builder'
],
'another_master': [
'third_builder'
]
}
"""
_, args = parser.parse_args(args)
......@@ -138,10 +135,10 @@ def CMDbuilders(parser, args):
masters = {}
if config.HasField('verifiers') and config.verifiers.HasField('try_job'):
for bucket in config.verifiers.try_job.buckets:
masters.setdefault(bucket.name, {})
masters.setdefault(bucket.name, [])
for builder in bucket.builders:
if not builder.HasField('experiment_percentage'):
masters[bucket.name].setdefault(builder.name, {})
masters[bucket.name].append(builder.name)
print json.dumps(masters)
CMDbuilders.func_usage_more = '<path-to-cq-config>'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment