blob: f81676d565a0a5a6667451478ed8e6e963a0ce85 [file] [log] [blame]
# Copyright 2017 The ChromiumOS Authors
# 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_Cr50Update"
METADATA = {
"contacts": ["chromeos-faft@google.com", "mruthven@chromium.org", "jbettis@chromium.org"],
"bug_component": "b:792402", # ChromeOS > Platform > Enablement > Firmware > FAFT
"criteria": "Provision a system to the correct gsc firmware version."
}
ATTRIBUTES = "suite:faft_gsc_nightly, suite:faft_ti50_qual"
# Provision runs quickly. TIME is set to LENGTHY, so this test gets scheduled
# first in the suite.
TIME = "LENGTHY"
TEST_TYPE = "server"
DEPENDENCIES = "servo_state:WORKING"
DOC = """
This is a test used by the provision control segment in autoserv to set the
cr50-version label of a host to the desired setting. This test attempts to
reprogram the cr50 firmware and set the cr50 chip board id. Use the args
from Cr50Test to specify the release image: release_ver, release_path, or
the version saved in chromeos_cr50-QUAL_VERSION.
@param release_path: local path to release image
@param release_ver: release version 'RW/BID'
@param cr50_dbg_image_path: local path to DBG image
"""
from autotest_lib.client.common_lib import utils
if 'args_dict' not in locals():
args_dict = {}
args_dict.update(utils.args_to_dict(args))
servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
def run(machine):
host = hosts.create_host(machine, servo_args=servo_args)
job.run_test('provision_Cr50Update', host=host, cmdline_args=args,
full_args=args_dict)
job.parallel_simple(run, machines)