| OLD | NEW | 
|---|
| 1 #!/usr/bin/python | 1 #!/usr/bin/env python | 
| 2 # | 2 # | 
| 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 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 """Saves logcats from all connected devices. | 7 """Saves logcats from all connected devices. | 
| 8 | 8 | 
| 9 Usage: adb_logcat_monitor.py <base_dir> [<adb_binary_path>] | 9 Usage: adb_logcat_monitor.py <base_dir> [<adb_binary_path>] | 
| 10 | 10 | 
| 11 This script will repeatedly poll adb for new devices and save logcats | 11 This script will repeatedly poll adb for new devices and save logcats | 
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 146           pass | 146           pass | 
| 147     os.remove(pid_file_path) | 147     os.remove(pid_file_path) | 
| 148 | 148 | 
| 149 | 149 | 
| 150 if __name__ == '__main__': | 150 if __name__ == '__main__': | 
| 151   if 2 <= len(sys.argv) <= 3: | 151   if 2 <= len(sys.argv) <= 3: | 
| 152     print 'adb_logcat_monitor: Initializing' | 152     print 'adb_logcat_monitor: Initializing' | 
| 153     sys.exit(main(*sys.argv[1:3])) | 153     sys.exit(main(*sys.argv[1:3])) | 
| 154 | 154 | 
| 155   print 'Usage: %s <base_dir> [<adb_binary_path>]' % sys.argv[0] | 155   print 'Usage: %s <base_dir> [<adb_binary_path>]' % sys.argv[0] | 
| OLD | NEW | 
|---|