1# Copyright 2019 The Chromium OS Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5 6AUTHOR = "chromeos-lab-infrastructure" 7NAME = "provision_Cr50TOT" 8PURPOSE = "Provision Cr50 TOT image." 9ATTRIBUTES = "suite:faft_cr50_tot" 10# Provision runs quickly. TIME is set to LENGTHY, so this test gets scheduled 11# first in the suite. 12TIME = "LENGTHY" 13TEST_CATEGORY = "System" 14TEST_CLASS = "provision" 15TEST_TYPE = "Server" 16DEPENDENCIES = "servo_state:WORKING,cr50-ro-keyid:dev" 17PY_VERSION = 3 18 19DOC = """ 20Update the Cr50 to the TOT image from the latest reef build. This requires that 21cr50 is running a dev signed RO. 22""" 23 24from autotest_lib.client.common_lib import error, utils 25 26 27if 'args_dict' not in locals(): 28 args_dict = {} 29 30args_dict.update(utils.args_to_dict(args)) 31servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 32 33def run(machine): 34 host = hosts.create_host(machine, servo_args=servo_args) 35 job.run_test('provision_Cr50TOT', host=host, cmdline_args=args, force=True) 36 37 38job.parallel_simple(run, machines) 39