blob: 8c5884cc39bd4987526579b1f37a11800346c128 [file] [log] [blame]
# Copyright 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_Cr50TOT"
PURPOSE = "Provision Cr50 TOT image."
ATTRIBUTES = "suite:faft_cr50_tot"
# Provision runs quickly. TIME is set to LENGTHY, so this test gets scheduled
# first in the suite.
TIME = "LENGTHY"
TEST_CATEGORY = "System"
TEST_CLASS = "provision"
TEST_TYPE = "Server"
DEPENDENCIES = "servo_state:WORKING,cr50-ro-keyid:dev"
DOC = """
Update the Cr50 to the TOT image from the latest reef build. This requires that
cr50 is running a dev signed RO.
"""
from autotest_lib.client.common_lib import error, 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_Cr50TOT', host=host, cmdline_args=args, force=True)
job.parallel_simple(run, machines)