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

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

Issue 10693110: [android] Split top-level scripts and libraries from build/android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright on __init__.py, removed #! on some pylib/ files. Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/android/pylib/cmd_helper.py ('k') | build/android/pylib/flag_changer.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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()
OLDNEW
« no previous file with comments | « build/android/pylib/cmd_helper.py ('k') | build/android/pylib/flag_changer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698