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

Unified Diff: client/bin/site_ui_test.py

Issue 3338019: [autotest] Grab more chrome logs, not just the last one, to hedge against crashes (Closed) Base URL: http://git.chromium.org/git/autotest.git
Patch Set: fixes per rginda, seano Created 10 years, 3 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
« client/bin/site_login.py ('K') | « client/bin/site_login.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/bin/site_ui_test.py
diff --git a/client/bin/site_ui_test.py b/client/bin/site_ui_test.py
index 83c156ae2b5fc0634b1fcabd8d62c088f16101b3..de60bad9e57b8557d9c002a843d713d5ab742809 100644
--- a/client/bin/site_ui_test.py
+++ b/client/bin/site_ui_test.py
@@ -239,9 +239,14 @@ class UITest(bin_test.test):
def cleanup(self):
"""Overridden from test.cleanup() to log out when the test is complete.
"""
+ logpath = chromeos_constants.CHROME_LOG_DIR
+
try:
- shutil.copy(chromeos_constants.CHROME_LOG_DIR+'/chrome',
- self.resultsdir+'/chrome_prelogin_log')
+ for file in os.listdir(logpath):
+ fullpath = os.path.join(logpath, file)
+ if os.path.isfile(fullpath):
+ shutil.copy(fullpath, os.path.join(self.resultsdir, file))
+
except (IOError, OSError) as error:
logging.error(error)
« client/bin/site_login.py ('K') | « client/bin/site_login.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698