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

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

Issue 1315743004: [Android] Add a custom pylintrc for build/android/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix appurify_sanitized import-errors Created 5 years, 3 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
« no previous file with comments | « build/android/test_runner.py ('k') | build/android/update_verification.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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2013 The Chromium Authors. All rights reserved. 3 # Copyright 2013 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 # 6 #
7 # Find the most recent tombstone file(s) on all connected devices 7 # Find the most recent tombstone file(s) on all connected devices
8 # and prints their stacks. 8 # and prints their stacks.
9 # 9 #
10 # Assumes tombstone file was created with current symbols. 10 # Assumes tombstone file was created with current symbols.
11 11
12 import datetime 12 import datetime
13 import itertools
14 import logging 13 import logging
15 import multiprocessing 14 import multiprocessing
16 import os 15 import os
17 import re 16 import re
18 import subprocess 17 import subprocess
19 import sys 18 import sys
20 import optparse 19 import optparse
21 20
22 from devil.android import device_blacklist 21 from devil.android import device_blacklist
23 from devil.android import device_errors 22 from devil.android import device_errors
24 from devil.android import device_utils 23 from devil.android import device_utils
25 from devil.android.sdk import adb_wrapper
26 from devil.utils import run_tests_helper 24 from devil.utils import run_tests_helper
27 25
28 26
29 _TZ_UTC = {'TZ': 'UTC'} 27 _TZ_UTC = {'TZ': 'UTC'}
30 28
31 def _ListTombstones(device): 29 def _ListTombstones(device):
32 """List the tombstone files on the device. 30 """List the tombstone files on the device.
33 31
34 Args: 32 Args:
35 device: An instance of DeviceUtils. 33 device: An instance of DeviceUtils.
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 # http://bugs.python.org/issue7980 250 # http://bugs.python.org/issue7980
253 tombstones = [] 251 tombstones = []
254 for device in devices: 252 for device in devices:
255 tombstones += _GetTombstonesForDevice(device, options) 253 tombstones += _GetTombstonesForDevice(device, options)
256 254
257 _ResolveTombstones(options.jobs, tombstones) 255 _ResolveTombstones(options.jobs, tombstones)
258 256
259 257
260 if __name__ == '__main__': 258 if __name__ == '__main__':
261 sys.exit(main()) 259 sys.exit(main())
OLDNEW
« no previous file with comments | « build/android/test_runner.py ('k') | build/android/update_verification.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698