Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Side by Side Diff: build/android/provision_devices.py

Issue 1390613002: Revert of [Android] Add a configurable environment for devil/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/android/devil_config.json ('k') | build/android/pylib/forwarder.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2013 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 """Provisions Android devices with settings required for bots. 7 """Provisions Android devices with settings required for bots.
8 8
9 Usage: 9 Usage:
10 ./provision_devices.py [-d <device serial number>] 10 ./provision_devices.py [-d <device serial number>]
11 """ 11 """
12 12
13 import argparse 13 import argparse
14 import datetime 14 import datetime
15 import json 15 import json
16 import logging 16 import logging
17 import os 17 import os
18 import posixpath 18 import posixpath
19 import re 19 import re
20 import subprocess 20 import subprocess
21 import sys 21 import sys
22 import time 22 import time
23 23
24 from devil import devil_env
25 from devil.android import battery_utils 24 from devil.android import battery_utils
26 from devil.android import device_blacklist 25 from devil.android import device_blacklist
27 from devil.android import device_errors 26 from devil.android import device_errors
28 from devil.android import device_temp_file 27 from devil.android import device_temp_file
29 from devil.android import device_utils 28 from devil.android import device_utils
30 from devil.android.sdk import version_codes 29 from devil.android.sdk import version_codes
31 from devil.utils import run_tests_helper 30 from devil.utils import run_tests_helper
32 from devil.utils import timeout_retry 31 from devil.utils import timeout_retry
33 from pylib import constants 32 from pylib import constants
34 from pylib import device_settings 33 from pylib import device_settings
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 help='Wait for the battery to have this temp or lower.') 475 help='Wait for the battery to have this temp or lower.')
477 parser.add_argument('--output-device-blacklist', 476 parser.add_argument('--output-device-blacklist',
478 help='Json file to output the device blacklist.') 477 help='Json file to output the device blacklist.')
479 parser.add_argument('--chrome-specific-wipe', action='store_true', 478 parser.add_argument('--chrome-specific-wipe', action='store_true',
480 help='only wipe chrome specific data during provisioning') 479 help='only wipe chrome specific data during provisioning')
481 args = parser.parse_args() 480 args = parser.parse_args()
482 constants.SetBuildType(args.target) 481 constants.SetBuildType(args.target)
483 482
484 run_tests_helper.SetLogLevel(args.verbose) 483 run_tests_helper.SetLogLevel(args.verbose)
485 484
486 devil_env.config.Initialize()
487
488 return ProvisionDevices(args) 485 return ProvisionDevices(args)
489 486
490 487
491 if __name__ == '__main__': 488 if __name__ == '__main__':
492 sys.exit(main()) 489 sys.exit(main())
OLDNEW
« no previous file with comments | « build/android/devil_config.json ('k') | build/android/pylib/forwarder.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698