summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorsivachandra@chromium.org <sivachandra@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-27 12:47:18 +0000
committersivachandra@chromium.org <sivachandra@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-27 12:47:18 +0000
commit48be243d5932dfb317c22d14d23b6c3ecfa4ab1c (patch)
tree59bf5f130c5c1f195e7ecbe82ac4618a36aef578 /build
parentf9225273ba1c640a4186bfc568d7583350f2cc04 (diff)
downloadchromium_src-48be243d5932dfb317c22d14d23b6c3ecfa4ab1c.zip
chromium_src-48be243d5932dfb317c22d14d23b6c3ecfa4ab1c.tar.gz
chromium_src-48be243d5932dfb317c22d14d23b6c3ecfa4ab1c.tar.bz2
[Android] Add a flag to skip provisioning check during device status check.
This is required for a downstream bot which builds Android from source and flashes it with every build. Review URL: https://chromiumcodereview.appspot.com/17893011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208902 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rwxr-xr-xbuild/android/device_status_check.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/build/android/device_status_check.py b/build/android/device_status_check.py
index 6302098..cd84153 100755
--- a/build/android/device_status_check.py
+++ b/build/android/device_status_check.py
@@ -18,7 +18,7 @@ from pylib import constants
from pylib.cmd_helper import GetCmdOutput
-def DeviceInfo(serial):
+def DeviceInfo(serial, options):
"""Gathers info on a device via various adb calls.
Args:
@@ -75,7 +75,8 @@ def DeviceInfo(serial):
errors = []
if battery_level < 15:
errors += ['Device critically low in battery. Turning off device.']
- if not setup_wizard_disabled and device_build_type != 'user':
+ if (not setup_wizard_disabled and device_build_type != 'user' and
+ not options.no_provisioning_check):
errors += ['Setup wizard not disabled. Was it provisioned correctly?']
if device_product_name == 'mantaray' and ac_power != 'true':
errors += ['Mantaray device not connected to AC power.']
@@ -185,6 +186,8 @@ def main():
help='Directory where the device path is stored',
default=os.path.join(os.path.dirname(__file__), '..',
'..', 'out'))
+ parser.add_option('--no-provisioning-check',
+ help='Will not check if devices are provisioned properly.')
options, args = parser.parse_args()
if args:
@@ -193,8 +196,8 @@ def main():
types, builds, reports, errors = [], [], [], []
fail_step_lst = []
if devices:
- types, builds, reports, errors, fail_step_lst = zip(*[DeviceInfo(dev)
- for dev in devices])
+ types, builds, reports, errors, fail_step_lst = (
+ zip(*[DeviceInfo(dev, options) for dev in devices]))
err_msg = CheckForMissingDevices(options, devices) or []