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

Side by Side Diff: tools/get_archive.py

Issue 26519002: Make get_archive work on debug bots (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 6
7 # Gets or updates a content shell (a nearly headless build of chrome). This is 7 # Gets or updates a content shell (a nearly headless build of chrome). This is
8 # used for running browser tests of client applications. 8 # used for running browser tests of client applications.
9 9
10 import json 10 import json
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 action='store_true', default=False) 335 action='store_true', default=False)
336 args, positional = parser.parse_args() 336 args, positional = parser.parse_args()
337 337
338 if args.revision and int(args.revision) < LAST_VALID[positional[0]]: 338 if args.revision and int(args.revision) < LAST_VALID[positional[0]]:
339 return TooEarlyError() 339 return TooEarlyError()
340 340
341 # Use the incremental release bot ('dartium-*-inc-be') by default. 341 # Use the incremental release bot ('dartium-*-inc-be') by default.
342 # Issue 13399 Quick fix, update with channel support. 342 # Issue 13399 Quick fix, update with channel support.
343 bot = 'inc-be' 343 bot = 'inc-be'
344 if args.debug: 344 if args.debug:
345 bot = 'debug' 345 bot = 'debug-be'
346 346
347 if positional[0] == 'dartium': 347 if positional[0] == 'dartium':
348 GetDartiumRevision('Dartium', bot, DARTIUM_DIR, DARTIUM_VERSION, 348 GetDartiumRevision('Dartium', bot, DARTIUM_DIR, DARTIUM_VERSION,
349 DARTIUM_LATEST_PATTERN, DARTIUM_PERMANENT_PATTERN, 349 DARTIUM_LATEST_PATTERN, DARTIUM_PERMANENT_PATTERN,
350 args.revision) 350 args.revision)
351 elif positional[0] == 'chromedriver': 351 elif positional[0] == 'chromedriver':
352 GetDartiumRevision('chromedriver', bot, CHROMEDRIVER_DIR, CHROMEDRIVER_VERSI ON, 352 GetDartiumRevision('chromedriver', bot, CHROMEDRIVER_DIR, CHROMEDRIVER_VERSI ON,
353 CHROMEDRIVER_LATEST_PATTERN, 353 CHROMEDRIVER_LATEST_PATTERN,
354 CHROMEDRIVER_PERMANENT_PATTERN, args.revision) 354 CHROMEDRIVER_PERMANENT_PATTERN, args.revision)
355 elif positional[0] == 'sdk': 355 elif positional[0] == 'sdk':
356 GetSdkRevision('sdk', SDK_DIR, SDK_VERSION, SDK_LATEST_PATTERN, 356 GetSdkRevision('sdk', SDK_DIR, SDK_VERSION, SDK_LATEST_PATTERN,
357 SDK_PERMANENT, args.revision) 357 SDK_PERMANENT, args.revision)
358 elif positional[0] == 'drt': 358 elif positional[0] == 'drt':
359 GetDartiumRevision('content_shell', bot, DRT_DIR, DRT_VERSION, 359 GetDartiumRevision('content_shell', bot, DRT_DIR, DRT_VERSION,
360 DRT_LATEST_PATTERN, DRT_PERMANENT_PATTERN, 360 DRT_LATEST_PATTERN, DRT_PERMANENT_PATTERN,
361 args.revision) 361 args.revision)
362 CopyDrtFont(DRT_DIR) 362 CopyDrtFont(DRT_DIR)
363 else: 363 else:
364 print ('Please specify the target you wish to download from Google Storage ' 364 print ('Please specify the target you wish to download from Google Storage '
365 '("drt", "dartium", "chromedriver", or "sdk")') 365 '("drt", "dartium", "chromedriver", or "sdk")')
366 366
367 if __name__ == '__main__': 367 if __name__ == '__main__':
368 sys.exit(main()) 368 sys.exit(main())
OLDNEW
« 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