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

Side by Side Diff: build/android/debug_info.py

Issue 8667008: Fix python scripts in src/build/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698