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

Unified Diff: client/tests/kernbench/kernbench.py

Issue 6246035: Merge remote branch 'cros/upstream' into master (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: patch 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
Index: client/tests/kernbench/kernbench.py
diff --git a/client/tests/kernbench/kernbench.py b/client/tests/kernbench/kernbench.py
index a22a67130eb32014386336a1dbcbe3205d441801..ccde09ffe5ae4c811b7c3f3bc92eeceeb07eaeb0 100644
--- a/client/tests/kernbench/kernbench.py
+++ b/client/tests/kernbench/kernbench.py
@@ -49,10 +49,13 @@ class kernbench(test.test):
self.threads = self.job.cpu_count()*2
self.kernel = self.__init_tree(version)
- logfile = os.path.join(self.debugdir, 'build_log')
-
logging.info("Warmup run ...")
- self.kernel.build_timed(self.threads, output=logfile) # warmup run
+ logfile = os.path.join(self.debugdir, 'build_log')
+ try:
+ self.kernel.build_timed(self.threads, output=logfile) # warmup run
+ finally:
+ if os.path.exists(logfile):
+ utils.system("gzip -9 '%s'" % logfile, ignore_status=True)
def run_once(self):
« cli/job.py ('K') | « client/tests/iozone/iozone.py ('k') | client/tests/kvm/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698