Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: tools/autoroller/roll_chromium_revision.py

Issue 1335353004: Add --skip-try flag to autoroll script. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/autoroller/roll_chromium_revision.py
diff --git a/tools/autoroller/roll_chromium_revision.py b/tools/autoroller/roll_chromium_revision.py
index 981f1aef79ec424e9d61490612010b7c019ca9c2..e906809624e9bf6591711522f10ff034b168b992 100755
--- a/tools/autoroller/roll_chromium_revision.py
+++ b/tools/autoroller/roll_chromium_revision.py
@@ -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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698