OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """Collect debug info for a test.""" | 5 """Collect debug info for a test.""" |
6 | 6 |
7 import datetime | 7 import datetime |
8 import logging | 8 import logging |
9 import os | 9 import os |
10 import re | 10 import re |
11 import shutil | 11 import shutil |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 for d in debug_info_list: | 193 for d in debug_info_list: |
194 d.ArchiveNewCrashFiles() | 194 d.ArchiveNewCrashFiles() |
195 # Add new dumps into the zip file. The zip may exist already if previous | 195 # Add new dumps into the zip file. The zip may exist already if previous |
196 # gtest also dumps the debug information. It's OK since we clean up the old | 196 # gtest also dumps the debug information. It's OK since we clean up the old |
197 # dumps in each build step. | 197 # dumps in each build step. |
198 cmd_helper.RunCmd(['zip', '-q', '-r', log_file, | 198 cmd_helper.RunCmd(['zip', '-q', '-r', log_file, |
199 ' '.join([d.GetStoragePath() for d in debug_info_list])]) | 199 ' '.join([d.GetStoragePath() for d in debug_info_list])]) |
200 assert os.path.exists(log_file) | 200 assert os.path.exists(log_file) |
201 for debug_info in debug_info_list: | 201 for debug_info in debug_info_list: |
202 debug_info.CleanupStorage() | 202 debug_info.CleanupStorage() |
OLD | NEW |