From 4f09b96e70a2a8cc3b70e1ae9fa4642a7f16b405 Mon Sep 17 00:00:00 2001 From: Chris Sosa Date: Thu, 2 Dec 2010 20:07:48 -0800 Subject: [PATCH] Use release candidates as a backup in case we fail to find the latest release. Change-Id: Ia94f1c983aec533fc2813f9c300266d394b8ee7c BUG=chromium-os:9946 TEST=Ran ctest and saw through the download and start of the test harness Review URL: http://codereview.chromium.org/5628002 --- bin/ctest.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/ctest.py b/bin/ctest.py index c1c806e558..3310056df7 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) :