| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import atexit | 5 import atexit |
| 6 import datetime | 6 import datetime |
| 7 import email.utils | 7 import email.utils |
| 8 import hashlib | 8 import hashlib |
| 9 import itertools | 9 import itertools |
| 10 import json | 10 import json |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 | 383 |
| 384 Returns the process responsible for reading the logs. | 384 Returns the process responsible for reading the logs. |
| 385 """ | 385 """ |
| 386 logcat = subprocess.Popen([self.adb_path, | 386 logcat = subprocess.Popen([self.adb_path, |
| 387 'logcat', | 387 'logcat', |
| 388 '-s', | 388 '-s', |
| 389 ' '.join(LOGCAT_TAGS)], | 389 ' '.join(LOGCAT_TAGS)], |
| 390 stdout=sys.stdout) | 390 stdout=sys.stdout) |
| 391 atexit.register(_ExitIfNeeded, logcat) | 391 atexit.register(_ExitIfNeeded, logcat) |
| 392 return logcat | 392 return logcat |
| OLD | NEW |