OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright 2015 The Chromium Authors. All rights reserved. | 3 # Copyright 2015 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 """Install *_incremental.apk targets as well as their dependent files.""" | 7 """Install *_incremental.apk targets as well as their dependent files.""" |
8 | 8 |
9 import argparse | 9 import argparse |
10 import glob | 10 import glob |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 action='count', | 248 action='count', |
249 help='Verbose level (multiple times for more)') | 249 help='Verbose level (multiple times for more)') |
250 | 250 |
251 args = parser.parse_args() | 251 args = parser.parse_args() |
252 | 252 |
253 run_tests_helper.SetLogLevel(args.verbose_count) | 253 run_tests_helper.SetLogLevel(args.verbose_count) |
254 constants.SetBuildType('Debug') | 254 constants.SetBuildType('Debug') |
255 if args.output_directory: | 255 if args.output_directory: |
256 constants.SetOutputDirectory(args.output_directory) | 256 constants.SetOutputDirectory(args.output_directory) |
257 | 257 |
258 devil_chromium.Initialize(output_directory=constants.GetOutputDirectory()) | 258 devil_chromium.Initialize(output_directory=constants.GetOutDirectory()) |
259 | 259 |
260 if args.device: | 260 if args.device: |
261 # Retries are annoying when commands fail for legitimate reasons. Might want | 261 # Retries are annoying when commands fail for legitimate reasons. Might want |
262 # to enable them if this is ever used on bots though. | 262 # to enable them if this is ever used on bots though. |
263 device = device_utils.DeviceUtils( | 263 device = device_utils.DeviceUtils( |
264 args.device, default_retries=0, enable_device_files_cache=True) | 264 args.device, default_retries=0, enable_device_files_cache=True) |
265 else: | 265 else: |
266 devices = device_utils.DeviceUtils.HealthyDevices( | 266 devices = device_utils.DeviceUtils.HealthyDevices( |
267 default_retries=0, enable_device_files_cache=True) | 267 default_retries=0, enable_device_files_cache=True) |
268 if not devices: | 268 if not devices: |
(...skipping 15 matching lines...) Expand all Loading... |
284 Uninstall(device, apk.GetPackageName()) | 284 Uninstall(device, apk.GetPackageName()) |
285 else: | 285 else: |
286 Install(device, apk, split_globs=args.splits, native_libs=args.native_libs, | 286 Install(device, apk, split_globs=args.splits, native_libs=args.native_libs, |
287 dex_files=args.dex_files, enable_device_cache=args.cache, | 287 dex_files=args.dex_files, enable_device_cache=args.cache, |
288 use_concurrency=args.threading, | 288 use_concurrency=args.threading, |
289 show_proguard_warning=args.show_proguard_warning) | 289 show_proguard_warning=args.show_proguard_warning) |
290 | 290 |
291 | 291 |
292 if __name__ == '__main__': | 292 if __name__ == '__main__': |
293 sys.exit(main()) | 293 sys.exit(main()) |
OLD | NEW |