| OLD | NEW |
| 1 #!/usr/bin/python | |
| 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 3 # 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 |
| 4 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 5 | 4 |
| 6 """Collect debug info for a test.""" | 5 """Collect debug info for a test.""" |
| 7 | 6 |
| 8 import datetime | 7 import datetime |
| 9 import logging | 8 import logging |
| 10 import os | 9 import os |
| 11 import re | 10 import re |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 for d in debug_info_list: | 193 for d in debug_info_list: |
| 195 d.ArchiveNewCrashFiles() | 194 d.ArchiveNewCrashFiles() |
| 196 # 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 |
| 197 # 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 |
| 198 # dumps in each build step. | 197 # dumps in each build step. |
| 199 cmd_helper.RunCmd(['zip', '-q', '-r', log_file, | 198 cmd_helper.RunCmd(['zip', '-q', '-r', log_file, |
| 200 ' '.join([d.GetStoragePath() for d in debug_info_list])]) | 199 ' '.join([d.GetStoragePath() for d in debug_info_list])]) |
| 201 assert os.path.exists(log_file) | 200 assert os.path.exists(log_file) |
| 202 for debug_info in debug_info_list: | 201 for debug_info in debug_info_list: |
| 203 debug_info.CleanupStorage() | 202 debug_info.CleanupStorage() |
| OLD | NEW |