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

Unified Diff: bin/ctest.py

Issue 5628002: Use release candidates as a backup in case we fail to find the latest release. (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: ws Created 10 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 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: bin/ctest.py
diff --git a/bin/ctest.py b/bin/ctest.py
index c1c806e558dc73f220e20df4f3d0f43f0b32c0b1..3310056df74775e7bd0eae02ea9c7b95da769218 100755
--- a/bin/ctest.py
+++ b/bin/ctest.py
@@ -167,7 +167,11 @@ def GetLatestZipUrl(board, channel, latest_url_base, zip_server_base):
Warning(('Could not use latest link provided, defaulting to parsing'
' latest from zip url base.'))
- return GetNewestLinkFromZipBase(board, channel, zip_server_base)
+ try:
+ return GetNewestLinkFromZipBase(board, channel, zip_server_base)
+ except:
+ Warning('Failed to get url from standard zip base. Trying rc.')
+ return GetNewestLinkFromZipBase(board + '-rc', channel, zip_server_base)
def GrabZipAndExtractImage(zip_url, download_folder, image_name) :
« 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