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

Unified Diff: bin/ctest.py

Issue 6389004: Clear cache for runs of ctest if --cache not set. (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: Missing enter_chroot Created 9 years, 11 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 | 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 3f7da2b9f8bdd364c0ff773ee01f2a98dd19a2fc..f675dfd2c156c57f5ebba7022765d244a874f413 100755
--- a/bin/ctest.py
+++ b/bin/ctest.py
@@ -225,6 +225,15 @@ def GrabZipAndExtractImage(zip_url, download_folder, image_name) :
fh.close()
+def WipeDevServerCache():
+ """Wipes the cache of the dev server."""
+ RunCommand(['sudo',
+ './start_devserver',
+ '--clear_cache',
+ '--exit',
+ ], enter_chroot=True)
+
+
def RunAUTestHarness(board, channel, latest_url_base, zip_server_base,
no_graphics, type, remote):
"""Runs the auto update test harness.
@@ -274,6 +283,8 @@ def main():
help='board for the image to compare against.')
parser.add_option('-c', '--channel',
help='channel for the image to compare against.')
+ parser.add_option('--cache', default=False, action='store_true',
+ help='Cache payloads')
parser.add_option('-l', '--latestbase',
help='Base url for latest links.')
parser.add_option('-z', '--zipbase',
@@ -301,6 +312,10 @@ def main():
if not options.zipbase:
parser.error('Need zip url base to get images.')
+ if not options.cache:
+ Info('Wiping dev server cache.')
+ WipeDevServerCache()
+
RunAUTestHarness(options.board, options.channel, options.latestbase,
options.zipbase, options.no_graphics, options.type,
options.remote)
« 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