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

Unified Diff: bin/ctest.py

Issue 5928005: Fixes to get ctest up and running again. (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: no verbose 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 | « bin/cros_au_test_harness.py ('k') | lib/cros_vm_lib.sh » ('j') | 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 3310056df74775e7bd0eae02ea9c7b95da769218..135ecfed388e55754f2722621b6e7989325f7ec8 100755
--- a/bin/ctest.py
+++ b/bin/ctest.py
@@ -22,6 +22,7 @@ from cros_build_lib import RunCommand
from cros_build_lib import Warning
_IMAGE_TO_EXTRACT = 'chromiumos_test_image.bin'
+_NEW_STYLE_VERSION = '0.9.131.0'
class HTMLDirectoryParser(HTMLParser.HTMLParser):
"""HTMLParser for parsing the default apache file index."""
@@ -216,6 +217,13 @@ def GrabZipAndExtractImage(zip_url, download_folder, image_name) :
fh.write(zip_url)
fh.close()
+ version = zip_url.split('/')[-2]
+ if not _GreaterVersion(version, _NEW_STYLE_VERSION) == version:
+ # If the version isn't ready for new style, touch file to use old style.
+ old_style_touch_path = os.path.join(download_folder, '.use_e1000')
+ fh = open(old_style_touch_path, 'w+')
+ fh.close()
+
def RunAUTestHarness(board, channel, latest_url_base, zip_server_base,
no_graphics, type, remote):
« no previous file with comments | « bin/cros_au_test_harness.py ('k') | lib/cros_vm_lib.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698