| Index: build/android/update_verification.py
|
| diff --git a/build/android/update_verification.py b/build/android/update_verification.py
|
| index 05d083b32a3d2889e8fa4d23e21cf1610224b615..72d156d8e3057b7d50673f48e5a23ee2d76578cc 100755
|
| --- a/build/android/update_verification.py
|
| +++ b/build/android/update_verification.py
|
| @@ -31,6 +31,7 @@ import sys
|
| import time
|
|
|
| from pylib import constants
|
| +from pylib.device import device_blacklist
|
| from pylib.device import device_errors
|
| from pylib.device import device_utils
|
| from pylib.utils import apk_helper
|
| @@ -64,6 +65,7 @@ def main():
|
| description="Script to do semi-automated upgrade testing.")
|
| parser.add_argument('-v', '--verbose', action='count',
|
| help='Print verbose log information.')
|
| + parser.add_argument('--blacklist-file', help='Device blacklist JSON file.')
|
| command_parsers = parser.add_subparsers(dest='command')
|
|
|
| subparser = command_parsers.add_parser('create_app_data')
|
| @@ -88,7 +90,12 @@ def main():
|
| args = parser.parse_args()
|
| run_tests_helper.SetLogLevel(args.verbose)
|
|
|
| - devices = device_utils.DeviceUtils.HealthyDevices()
|
| + if args.blacklist_file:
|
| + blacklist = device_blacklist.Blacklist(args.blacklist_file)
|
| + else:
|
| + blacklist = None
|
| +
|
| + devices = device_utils.DeviceUtils.HealthyDevices(blacklist)
|
| if not devices:
|
| raise device_errors.NoDevicesError()
|
| device = devices[0]
|
|
|