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

Side by Side Diff: editor/build/promote.py

Issue 11638015: Fix 2 failing tests on windows. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2012, 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 # Dart Editor promote and google storage cleanup tools. 7 # Dart Editor promote and google storage cleanup tools.
8 8
9 import gsutil 9 import gsutil
10 import optparse 10 import optparse
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 to_bucket: the bucket to promote to 238 to_bucket: the bucket to promote to
239 """ 239 """
240 240
241 src = '{0}/{1}/*'.format(from_bucket, revision) 241 src = '{0}/{1}/*'.format(from_bucket, revision)
242 integ_rev = '{0}/{1}/'.format(to_bucket, revision) 242 integ_rev = '{0}/{1}/'.format(to_bucket, revision)
243 integ_latest = '{0}/{1}/'.format(to_bucket, 'latest') 243 integ_latest = '{0}/{1}/'.format(to_bucket, 'latest')
244 244
245 # copy from continuous/REVISION to integration/REVISION 245 # copy from continuous/REVISION to integration/REVISION
246 print 'copying: {0} -> {1}'.format(src, integ_rev) 246 print 'copying: {0} -> {1}'.format(src, integ_rev)
247 _Gsutil(['cp', '-R', '-a', 'public-read', src, integ_rev]) 247 _Gsutil(['cp', '-R', '-a', 'public-read', src, integ_rev])
248 _Gsutil(['rm', '-R', '{0}tests'.format(integ_rev)])
249 248
250 # copy from continuous/REVISION to integration/latest 249 # copy from continuous/REVISION to integration/latest
251 print 'copying: {0} -> {1}'.format(src, integ_latest) 250 print 'copying: {0} -> {1}'.format(src, integ_latest)
252 _Gsutil(['cp', '-R', '-a', 'public-read', src, integ_latest]) 251 _Gsutil(['cp', '-R', '-a', 'public-read', src, integ_latest])
253 _Gsutil(['rm', '-R', '{0}tests'.format(integ_latest)])
254 252
255 253
256 def _PrintSeparator(text): 254 def _PrintSeparator(text):
257 print '================================' 255 print '================================'
258 print '== %s' % text 256 print '== %s' % text
259 257
260 258
261 def _PrintFailure(text): 259 def _PrintFailure(text):
262 print '*****************************' 260 print '*****************************'
263 print '** %s' % text 261 print '** %s' % text
(...skipping 10 matching lines...) Expand all
274 if directory is not None: 272 if directory is not None:
275 cwd = os.getcwd() 273 cwd = os.getcwd()
276 os.chdir(directory) 274 os.chdir(directory)
277 subprocess.call(cmd, env=os.environ) 275 subprocess.call(cmd, env=os.environ)
278 if directory is not None: 276 if directory is not None:
279 os.chdir(cwd) 277 os.chdir(cwd)
280 278
281 279
282 if __name__ == '__main__': 280 if __name__ == '__main__':
283 sys.exit(main()) 281 sys.exit(main())
OLDNEW
« no previous file with comments | « editor/build/gsutilTest.py ('k') | editor/tools/features/com.google.dart.tools.tests.feature_releng/buildTests.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698