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) |