Change "tryjob" -> "try job" in git_cl.py and trychange.py.

I know this is an unimportant change, and that across Chromium,
"try job" and "tryjob", and "try bot" and "trybot" are basically
interchangeable, still I think it's nice to have the spelling
consistent within one module.

I prefer the version with a space just because that's what's used
in the documentation:
https://www.chromium.org/developers/testing/try-server-usage

Review-Url: https://codereview.chromium.org/2269283002
changes/18/399118/1
qyearsley 9 years ago committed by Commit bot
parent b9f5e3796c
commit eab3c04311

@ -434,7 +434,7 @@ def fetch_try_jobs(auth_config, changelist, options):
return builds
def print_tryjobs(options, builds):
def print_try_jobs(options, builds):
"""Prints nicely result of fetch_try_jobs."""
if not builds:
print('No try jobs scheduled')
@ -4785,7 +4785,7 @@ def CMDtry_results(parser, args):
print('ERROR: Exception when trying to fetch try jobs: %s\n%s' %
(e, stacktrace))
return 1
print_tryjobs(options, jobs)
print_try_jobs(options, jobs)
return 0

@ -398,16 +398,16 @@ def _GenTSBotSpec(checkouts, change, changed_files, options):
sys.stdout)
# Compatibility for old checkouts and bots that were on tryserver.chromium.
trybots = masters.get('tryserver.chromium', [])
try_bots = 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 not try_bots and len(masters) == 1:
try_bots = masters.values()[0]
if trybots:
old_style = filter(lambda x: isinstance(x, basestring), trybots)
new_style = filter(lambda x: isinstance(x, tuple), trybots)
if try_bots:
old_style = filter(lambda x: isinstance(x, basestring), try_bots)
new_style = filter(lambda x: isinstance(x, tuple), try_bots)
# _ParseBotList's testfilter is set to None otherwise it will complain.
bot_spec = _ApplyTestFilter(options.testfilter,

Loading…
Cancel
Save