Reland of git cl try: don't skip presubmit builders, but set dry_run property.

With a fix: actually set dry_run for presubmit, and don't set it for other builders.

R=machenbach@chromium.org,sergiyb@chromium.org
BUG=601128,594127,591030

Review-Url: https://codereview.chromium.org/1926663002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@300295 0039d316-1c4b-4281-b951-d872f2087c98
changes/60/343160/1
tandrii@chromium.org 9 years ago
parent c38fd01b2f
commit c68f7b51f5

@ -337,6 +337,8 @@ def trigger_try_jobs(auth_config, changelist, options, masters, category):
'rietveld': rietveld_url, 'rietveld': rietveld_url,
}, },
} }
if 'presubmit' in builder.lower():
parameters['properties']['dry_run'] = 'true'
if tests: if tests:
parameters['properties']['testfilter'] = tests parameters['properties']['testfilter'] = tests
if properties: if properties:
@ -4316,8 +4318,7 @@ def CMDtry(parser, args):
for master, builders in cq_masters.iteritems(): for master, builders in cq_masters.iteritems():
for builder in builders: for builder in builders:
# Skip presubmit builders, because these will fail without LGTM. # Skip presubmit builders, because these will fail without LGTM.
if 'presubmit' not in builder.lower(): masters.setdefault(master, {})[builder] = ['defaulttests']
masters.setdefault(master, {})[builder] = ['defaulttests']
if masters: if masters:
return masters return masters

Loading…
Cancel
Save