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

Unified Diff: tools/get_drt.py

Issue 10417025: Deal with different chromedrivers running on for Chrome and Dartium. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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 | tools/testing/perf_testing/run_perf_tests.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/get_drt.py
===================================================================
--- tools/get_drt.py (revision 7828)
+++ tools/get_drt.py (working copy)
@@ -38,6 +38,13 @@
'gs://dartium-archive/latest/dartium-%(osname)s-inc-*.zip')
DARTIUM_PERMANENT_PREFIX = 'gs://dartium-archive/dartium-%(osname)s-inc'
+CHROMEDRIVER_DIR = os.path.join('tools', 'testing', 'dartium-chromedriver')
+CHROMEDRIVER_VERSION = os.path.join(CHROMEDRIVER_DIR, 'LAST_VERSION')
+CHROMEDRIVER_LATEST_PATTERN = (
+ 'gs://dartium-archive/latest/chromedriver-%(osname)s-inc-*.zip')
+CHROMEDRIVER_PERMANENT_PREFIX = (
+ 'gs://dartium-archive/chromedriver-%(osname)s-inc')
+
sys.path.append(os.path.join(GSUTIL_DIR, 'boto'))
import boto
@@ -190,11 +197,17 @@
parser.add_option('--dartium', dest='dartium',
help='Get latest Dartium', action='store_true',
default=False)
+ parser.add_option('--chromedriver', dest='chromedriver',
+ help='Get the latest built ChromeDriver',
+ action='store_true', default=False)
args, _ = parser.parse_args()
if args.dartium:
get_latest('Dartium', DARTIUM_DIR, DARTIUM_VERSION,
DARTIUM_LATEST_PATTERN, DARTIUM_PERMANENT_PREFIX)
+ elif args.chromedriver:
+ get_latest('chromedriver', CHROMEDRIVER_DIR, CHROMEDRIVER_VERSION,
+ CHROMEDRIVER_LATEST_PATTERN, CHROMEDRIVER_PERMANENT_PREFIX)
else:
get_latest('DumpRenderTree', DRT_DIR, DRT_VERSION,
DRT_LATEST_PATTERN, DRT_PERMANENT_PREFIX)
« no previous file with comments | « no previous file | tools/testing/perf_testing/run_perf_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698