blob: e4b8d05da368842f8694b30d132aed21ce0d2917 [file] [log] [blame]
# Copyright (c) 2019 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
AUTHOR = "chromeos-lab-infrastructure"
NAME = "provision_FirmwareUpdate.ccd"
PURPOSE = "Verify flashing firmware through ccd_cr50"
# TODO(b/123717818): Add this test to faft_cr50_(prv|prepvt|tot)
TIME = "MEDIUM"
TEST_CATEGORY = "Functional"
TEST_CLASS = "firmware"
TEST_TYPE = "server"
DOC = """
This is a test used by the provision control segment in autoserv to set the
fwro-version label of a host to the desired setting. This test attempts to
reprogram both EC and AP firmware through ccd_cr50 device.
"""
from autotest_lib.client.common_lib import error, utils
args_dict = utils.args_to_dict(args)
servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
if not locals().get('value'):
if not args_dict.get('value'):
raise error.TestError("No provision value!")
value = args_dict['value']
def run(machine):
host = hosts.create_host(machine, servo_args=servo_args)
job.run_test('provision_FirmwareUpdate', host=host, value=value,
rw_only=False, disable_sysinfo=True,
flash_device='ccd_cr50')
job.parallel_simple(run, machines)