Do not alert if devices with user/eng Android builds are not provisioned.

BUG=245058

Review URL: https://chromiumcodereview.appspot.com/16196004

git-svn-id: http://src.chromium.org/svn/trunk/src/build@205021 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
sivachandra@chromium.org 2013-06-08 05:02:45 +00:00
Родитель 469fd5fdc7
Коммит 7460772c72
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -35,6 +35,7 @@ def DeviceInfo(serial):
device_type = AdbShellCmd('getprop ro.build.product')
device_build = AdbShellCmd('getprop ro.build.id')
device_build_type = AdbShellCmd('getprop ro.build.type')
device_product_name = AdbShellCmd('getprop ro.product.name')
setup_wizard_disabled = AdbShellCmd(
@ -71,7 +72,7 @@ def DeviceInfo(serial):
errors = []
if battery_level < 5:
errors += ['Device critically low in battery. Do not use for testing.']
if not setup_wizard_disabled:
if not setup_wizard_disabled and device_build_type != 'user':
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.']