blob: 49650a387c649fed8be3305da75d2b6474ae3df4 [file] [log] [blame]
# Copyright 2015 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# TODO(b/260665155): Add these tests into a suite.
AUTHOR = "chromeos-lab-infrastructure"
NAME = "provision_FirmwareUpdate.rw_only"
METADATA = {
"contacts": [
"chromeos-core-services@google.com",
"chromeos-sw-engprod@google.com"
],
"bug_component": "b:908319",
"criteria": "Provision a system to the correct firmware version, update RW only."
}
TIME = "MEDIUM"
TEST_TYPE = "Server"
DOC = """
This is a test used by the provision control segment in autoserv to set the
fwrw-version label of a host to the desired setting. This test attempts to
reprogram only RW of both EC and AP firmware.
"""
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']
if not locals().get('fw_path'):
fw_path = args_dict.get('fw_path', None)
def run(machine):
host = hosts.create_host(machine, servo_args=servo_args)
job.run_test('provision_FirmwareUpdate', host=host, value=value,
rw_only=True, disable_sysinfo=True, fw_path=fw_path)
job.parallel_simple(run, machines)