Chromium Code Reviews| Index: build/android/adb_install_apk.py |
| diff --git a/build/android/adb_install_apk.py b/build/android/adb_install_apk.py |
| index a816bd403f8cc5c13d589728b10f20e3416b7d32..51b168158bef6bb5ba68fcb53591ff6b3fb533ed 100755 |
| --- a/build/android/adb_install_apk.py |
| +++ b/build/android/adb_install_apk.py |
| @@ -51,8 +51,9 @@ def main(): |
| dest='build_type', |
| help='If set, run test suites under out/Release. ' |
| 'Default is env var BUILDTYPE or Debug.') |
| - parser.add_argument('-d', '--device', dest='device', |
| - help='Target device for apk to install on.') |
| + parser.add_argument('-d', '--device', dest='device', action='append', |
|
jbudorick
2015/12/07 21:40:54
nit: dest should become 'devices'
rnephew (Reviews Here)
2015/12/07 21:47:49
Done.
|
| + help='Target device for apk to install on. Enter multiple' |
| + ' times for multiple devices.') |
| parser.add_argument('--blacklist-file', help='Device blacklist JSON file.') |
| parser.add_argument('-v', '--verbose', action='count', |
| help='Enable verbose logging.') |
| @@ -89,7 +90,7 @@ def main(): |
| devices = device_utils.DeviceUtils.HealthyDevices(blacklist) |
| if args.device: |
| - devices = [d for d in devices if d == args.device] |
| + devices = [d for d in devices if d in args.device] |
| if not devices: |
| raise device_errors.DeviceUnreachableError(args.device) |
| elif not devices: |