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

Side by Side Diff: tools/get_drt.py

Issue 8230019: get_drt: pin version number again until we fix bucket ACL (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 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 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 os 10 import os
(...skipping 12 matching lines...) Expand all
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/20110627'
26 GSUTIL = GSUTIL_DIR + '/gsutil' 26 GSUTIL = GSUTIL_DIR + '/gsutil'
27 DRT_DIR = 'client/tests/drt' 27 DRT_DIR = 'client/tests/drt'
28 VERSION = DRT_DIR + '/LAST_VERSION' 28 VERSION = DRT_DIR + '/LAST_VERSION'
29 DRT_DARTIUM_LATEST_PATTERN = ( 29 DRT_DARTIUM_LATEST_PATTERN = (
30 'gs://dartium-archive/latest/dartium-%(osname)s-inc-*.zip') 30 'gs://dartium-archive/latest/dartium-%(osname)s-inc-*.zip')
31 DRT_DARTIUM_PERMANENT_PREFIX = 'gs://dartium-archive/dartium-%(osname)s-inc' 31 DRT_DARTIUM_PERMANENT_PREFIX = 'gs://dartium-archive/dartium-%(osname)s-inc'
32 DRT_CHROMIUM_LATEST_PATTERN = ( 32 DRT_CHROMIUM_LATEST_PATTERN = (
33 'gs://dart-dump-render-tree/latest/chromium-%(osname)s-*.zip') 33 'gs://dart-dump-render-tree/latest/chromium-%(osname)s-103752.zip')
34 34
35 sys.path.append(GSUTIL_DIR + '/boto') 35 sys.path.append(GSUTIL_DIR + '/boto')
36 import boto 36 import boto
37 37
38 38
39 def execute_command(*cmd): 39 def execute_command(*cmd):
40 """Execute a command in a subprocess.""" 40 """Execute a command in a subprocess."""
41 pipe = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) 41 pipe = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
42 output, error = pipe.communicate() 42 output, error = pipe.communicate()
43 return pipe.returncode, output 43 return pipe.returncode, output
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 # create the version stamp 157 # create the version stamp
158 v = open(VERSION, 'w') 158 v = open(VERSION, 'w')
159 v.write(latest) 159 v.write(latest)
160 v.close() 160 v.close()
161 161
162 print 'Successfully downloaded to %s' % DRT_DIR 162 print 'Successfully downloaded to %s' % DRT_DIR
163 return 0 163 return 0
164 164
165 if __name__ == '__main__': 165 if __name__ == '__main__':
166 sys.exit(main()) 166 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