| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2015 The Chromium Authors. All rights reserved. | 2 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import argparse | 6 import argparse |
| 7 import logging | 7 import logging |
| 8 import os |
| 8 import sys | 9 import sys |
| 9 | 10 |
| 11 if __name__ == '__main__': |
| 12 sys.path.append(os.path.abspath(os.path.join( |
| 13 os.path.dirname(__file__), os.pardir, os.pardir, os.pardir))) |
| 10 from devil.android import device_blacklist | 14 from devil.android import device_blacklist |
| 11 from devil.android import device_errors | 15 from devil.android import device_errors |
| 12 from devil.android import device_utils | 16 from devil.android import device_utils |
| 13 from devil.android import fastboot_utils | 17 from devil.android import fastboot_utils |
| 14 from devil.android.sdk import adb_wrapper | 18 from devil.android.sdk import adb_wrapper |
| 15 from devil.constants import exit_codes | 19 from devil.constants import exit_codes |
| 16 from devil.utils import run_tests_helper | 20 from devil.utils import run_tests_helper |
| 17 | 21 |
| 18 | 22 |
| 19 def GetDeviceList(device=None): | 23 def GetDeviceList(device=None): |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 logging.info('The following devices were flashed:') | 76 logging.info('The following devices were flashed:') |
| 73 logging.info(' %s', ' '.join(str(d) for d in flashed_devices)) | 77 logging.info(' %s', ' '.join(str(d) for d in flashed_devices)) |
| 74 if failed_devices: | 78 if failed_devices: |
| 75 logging.critical('The following devices failed to flash:') | 79 logging.critical('The following devices failed to flash:') |
| 76 logging.critical(' %s', ' '.join(str(d) for d in failed_devices)) | 80 logging.critical(' %s', ' '.join(str(d) for d in failed_devices)) |
| 77 return exit_codes.INFRA | 81 return exit_codes.INFRA |
| 78 return 0 | 82 return 0 |
| 79 | 83 |
| 80 if __name__ == '__main__': | 84 if __name__ == '__main__': |
| 81 sys.exit(main()) | 85 sys.exit(main()) |
| OLD | NEW |