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

Unified Diff: tools/get_drt.py

Issue 9652026: Download the DRT archive instead of the full dartium (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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/get_drt.py
diff --git a/tools/get_drt.py b/tools/get_drt.py
index 20e106c57c50df0bfe174d560feaa7b7a09b3c38..4794f5b381110b8e57947eb843870f54e969ff0b 100755
--- a/tools/get_drt.py
+++ b/tools/get_drt.py
@@ -27,10 +27,8 @@ GSUTIL = GSUTIL_DIR + '/gsutil'
DRT_DIR = 'client/tests/drt'
VERSION = DRT_DIR + '/LAST_VERSION'
DRT_DARTIUM_LATEST_PATTERN = (
- 'gs://dartium-archive/latest/dartium-%(osname)s-inc-*.zip')
-DRT_DARTIUM_PERMANENT_PREFIX = 'gs://dartium-archive/dartium-%(osname)s-inc'
-DRT_CHROMIUM_LATEST_PATTERN = (
- 'gs://dart-dump-render-tree/latest/chromium-%(osname)s-103752.zip')
+ 'gs://dartium-archive/latest/drt-%(osname)s-inc-*.zip')
+DRT_DARTIUM_PERMANENT_PREFIX = 'gs://dartium-archive/drt-%(osname)s-inc'
sys.path.append(GSUTIL_DIR + '/boto')
import boto
@@ -116,15 +114,10 @@ def main():
latest = (DRT_DARTIUM_PERMANENT_PREFIX % { 'osname' : osname }
+ latest[latest.rindex('/'):])
else: # e.g. no access
- pattern = DRT_CHROMIUM_LATEST_PATTERN % { 'osname' : osname }
- result, out = gsutil('ls', pattern)
- if result == 0:
- latest = out.split()[-1]
- else:
- print "Couldn't download DumpRenderTree: %s\n%s" % (pattern, out)
- if not os.path.exists(VERSION):
- print "Tests using arch=chromium will not work. Please try again later."
- return 0
+ print "Couldn't download DumpRenderTree: %s\n%s" % (pattern, out)
+ if not os.path.exists(VERSION):
+ print "Tests using arch=chromium will not work. Please try again later."
Siggi Cherem (dart-lang) 2012/03/12 16:12:13 this message is a bit old, can we change to say ju
+ return 0
# Check if we need to update the file
if os.path.exists(VERSION):
« 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