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

Unified Diff: chrome/test/chromedriver/archive.py

Issue 323383004: [chromedriver] Fix waiting and downloading snapshot builds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nit. Created 6 years, 6 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 | chrome/test/chromedriver/run_buildbot_steps.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/archive.py
diff --git a/chrome/test/chromedriver/archive.py b/chrome/test/chromedriver/archive.py
index 24854d5063176450a95a18fa6af1b4f3ca39b90d..93ca15f7391ec4d06209f645f9bfd6d252b11d36 100644
--- a/chrome/test/chromedriver/archive.py
+++ b/chrome/test/chromedriver/archive.py
@@ -79,3 +79,19 @@ def _GetDownloadPlatform():
return 'Linux_x64'
else:
return 'Linux'
+
+def GetLatestSnapshotVersion():
+ """Returns the latest revision of snapshot build."""
+ return GetLatestRevision(GetSnapshotDownloadSite())
+
+def GetSnapshotDownloadSite():
+ """Returns the site to download snapshot build according to the platform.
+
+ For Linux 32-bit, it is chromium snapshot build.
+ For other platform, it is blink snapshot build.
+ Because there is no linux32 blink snapshot build.
+ """
+ if _GetDownloadPlatform() == 'Linux':
+ return Site.CHROMIUM_SNAPSHOT
+ else:
+ return Site.BLINK_SNAPSHOT
« no previous file with comments | « no previous file | chrome/test/chromedriver/run_buildbot_steps.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698