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

Side by Side Diff: tools/get_drt.py

Issue 10199002: Upgrade gsutil to 3.4 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments Created 8 years, 8 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 | « third_party/gsutil/third_party/fancy_urllib/__init__.py ('k') | 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 DumpRenderTree (a nearly headless build of chrome). This is 7 # Gets or updates a DumpRenderTree (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 optparse 10 import optparse
11 import os 11 import os
12 import platform 12 import platform
13 import shutil 13 import shutil
14 import subprocess 14 import subprocess
15 import sys 15 import sys
16 import tempfile 16 import tempfile
17 17
18 def NormJoin(path1, path2): 18 def NormJoin(path1, path2):
19 return os.path.normpath(os.path.join(path1, path2)) 19 return os.path.normpath(os.path.join(path1, path2))
20 20
21 # Change into the dart directory as we want the project to be rooted here. 21 # Change into the dart directory as we want the project to be rooted here.
22 dart_src = NormJoin(os.path.dirname(sys.argv[0]), os.pardir) 22 dart_src = NormJoin(os.path.dirname(sys.argv[0]), os.pardir)
23 os.chdir(dart_src) 23 os.chdir(dart_src)
24 24
25 GSUTIL_DIR = 'third_party/gsutil/20110627' 25 GSUTIL_DIR = 'third_party/gsutil'
26 GSUTIL = GSUTIL_DIR + '/gsutil' 26 GSUTIL = GSUTIL_DIR + '/gsutil'
27 27
28 DRT_DIR = 'client/tests/drt' 28 DRT_DIR = 'client/tests/drt'
29 DRT_VERSION = DRT_DIR + '/LAST_VERSION' 29 DRT_VERSION = DRT_DIR + '/LAST_VERSION'
30 DRT_LATEST_PATTERN = ( 30 DRT_LATEST_PATTERN = (
31 'gs://dartium-archive/latest/drt-%(osname)s-inc-*.zip') 31 'gs://dartium-archive/latest/drt-%(osname)s-inc-*.zip')
32 DRT_PERMANENT_PREFIX = 'gs://dartium-archive/drt-%(osname)s-inc' 32 DRT_PERMANENT_PREFIX = 'gs://dartium-archive/drt-%(osname)s-inc'
33 33
34 DARTIUM_DIR = 'client/tests/dartium' 34 DARTIUM_DIR = 'client/tests/dartium'
35 DARTIUM_VERSION = DARTIUM_DIR + '/LAST_VERSION' 35 DARTIUM_VERSION = DARTIUM_DIR + '/LAST_VERSION'
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 180
181 if args.dartium: 181 if args.dartium:
182 get_latest('Dartium', DARTIUM_DIR, DARTIUM_VERSION, 182 get_latest('Dartium', DARTIUM_DIR, DARTIUM_VERSION,
183 DARTIUM_LATEST_PATTERN, DARTIUM_PERMANENT_PREFIX) 183 DARTIUM_LATEST_PATTERN, DARTIUM_PERMANENT_PREFIX)
184 else: 184 else:
185 get_latest('DumpRenderTree', DRT_DIR, DRT_VERSION, 185 get_latest('DumpRenderTree', DRT_DIR, DRT_VERSION,
186 DRT_LATEST_PATTERN, DRT_PERMANENT_PREFIX) 186 DRT_LATEST_PATTERN, DRT_PERMANENT_PREFIX)
187 187
188 if __name__ == '__main__': 188 if __name__ == '__main__':
189 sys.exit(main()) 189 sys.exit(main())
OLDNEW
« no previous file with comments | « third_party/gsutil/third_party/fancy_urllib/__init__.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698