Add --skip-try flag to autoroll script.
This is useful when the patch needs additional modifications before being sent to the tryjobs. BUG= R=phoglund@webrtc.org Review URL: https://codereview.webrtc.org/1335353004 . Cr-Commit-Position: refs/heads/master@{#9943}
This commit is contained in:
parent
8e4e8b0455
commit
ec0feb6ddf
@ -337,9 +337,9 @@ def _UploadCL(dry_run):
|
||||
_RunCommand(['git', 'cl', 'upload'], extra_env={'EDITOR': 'true'})
|
||||
|
||||
|
||||
def _LaunchTrybots(dry_run):
|
||||
def _LaunchTrybots(dry_run, skip_try):
|
||||
logging.info('Sending tryjobs...')
|
||||
if not dry_run:
|
||||
if not dry_run and not skip_try:
|
||||
_RunCommand(['git', 'cl', 'try'])
|
||||
|
||||
|
||||
@ -354,6 +354,8 @@ def main():
|
||||
help=('Calculate changes and modify DEPS, but don\'t create '
|
||||
'any local branch, commit, upload CL or send any '
|
||||
'tryjobs.'))
|
||||
p.add_argument('-s', '--skip-try', action='store_true', default=False,
|
||||
help='Do everything except sending tryjobs.')
|
||||
p.add_argument('-v', '--verbose', action='store_true', default=False,
|
||||
help='Be extra verbose in printing of log messages.')
|
||||
opts = p.parse_args()
|
||||
@ -397,7 +399,7 @@ def main():
|
||||
UpdateDeps(deps_filename, current_cr_rev, opts.revision)
|
||||
_LocalCommit(commit_msg, opts.dry_run)
|
||||
_UploadCL(opts.dry_run)
|
||||
_LaunchTrybots(opts.dry_run)
|
||||
_LaunchTrybots(opts.dry_run, opts.skip_try)
|
||||
return 0
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user