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

Unified Diff: server/site_tests/platform_BootPerfServer/platform_BootPerfServer.py

Issue 2830016: Add boot time tests to nightly suite, and run multiple iterations (Closed) Base URL: ssh://gitrw.chromium.org/autotest.git
Patch Set: rename run_client_tests to something hopefully more appropriate Created 10 years, 6 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 | server/site_tests/suite_Nightly/control » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: server/site_tests/platform_BootPerfServer/platform_BootPerfServer.py
diff --git a/server/site_tests/platform_BootPerfServer/platform_BootPerfServer.py b/server/site_tests/platform_BootPerfServer/platform_BootPerfServer.py
index 228b929b241d065fbaa8a89f17c5c9586ad3edd3..99ef2b48107ac3ce77f472dd8706f115047e2bf3 100644
--- a/server/site_tests/platform_BootPerfServer/platform_BootPerfServer.py
+++ b/server/site_tests/platform_BootPerfServer/platform_BootPerfServer.py
@@ -24,14 +24,14 @@ class platform_BootPerfServer(test.test):
client_at = autotest.Autotest(self.client)
client_at.run_test(self.client_test, last_boot_was_reboot=True)
-
- def postprocess(self):
- logging.info('BootPerfServer: postprocess %s' % self.client.hostname)
-
# Promote the client test keyval as our own
src = os.path.join(self.outputdir, self.client_test, "results/keyval")
dst = os.path.join(self.resultsdir, "keyval")
if os.path.exists(src):
- shutil.copy(src, dst)
+ client_results = open(src, "r")
+ server_results = open(dst, "a")
+ shutil.copyfileobj(client_results, server_results)
+ server_results.close()
+ client_results.close()
else:
logging.warn('Unable to locate %s' % src)
« no previous file with comments | « no previous file | server/site_tests/suite_Nightly/control » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698