|
|
@ -376,14 +376,23 @@ def _GenTSBotSpec(checkouts, change, changed_files, options):
|
|
|
|
options.issue,
|
|
|
|
options.issue,
|
|
|
|
options.patchset,
|
|
|
|
options.patchset,
|
|
|
|
options.email)
|
|
|
|
options.email)
|
|
|
|
trybots = presubmit_support.DoGetTryMasters(
|
|
|
|
masters = presubmit_support.DoGetTryMasters(
|
|
|
|
change,
|
|
|
|
change,
|
|
|
|
checkouts[0].GetFileNames(),
|
|
|
|
checkouts[0].GetFileNames(),
|
|
|
|
checkouts[0].checkout_root,
|
|
|
|
checkouts[0].checkout_root,
|
|
|
|
root_presubmit,
|
|
|
|
root_presubmit,
|
|
|
|
options.project,
|
|
|
|
options.project,
|
|
|
|
options.verbose,
|
|
|
|
options.verbose,
|
|
|
|
sys.stdout).get('tryserver.chromium', [])
|
|
|
|
sys.stdout)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Compatibility for old checkouts and bots that were on tryserver.chromium.
|
|
|
|
|
|
|
|
trybots = masters.get('tryserver.chromium', [])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Compatibility for checkouts that are not using tryserver.chromium
|
|
|
|
|
|
|
|
# but are stuck with git-try or gcl-try.
|
|
|
|
|
|
|
|
if not trybots and len(masters) == 1:
|
|
|
|
|
|
|
|
trybots = masters.values()[0]
|
|
|
|
|
|
|
|
|
|
|
|
if trybots:
|
|
|
|
if trybots:
|
|
|
|
old_style = filter(lambda x: isinstance(x, basestring), trybots)
|
|
|
|
old_style = filter(lambda x: isinstance(x, basestring), trybots)
|
|
|
|
new_style = filter(lambda x: isinstance(x, tuple), trybots)
|
|
|
|
new_style = filter(lambda x: isinstance(x, tuple), trybots)
|
|
|
|