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" 17 18DOC = """ 19Update the Cr50 to the TOT image from the latest reef build. This requires that 20cr50 is running a dev signed RO. 21""" 22 23from autotest_lib.client.common_lib import error, utils 24 25 26if 'args_dict' not in locals(): 27 args_dict = {} 28 29args_dict.update(utils.args_to_dict(args)) 30servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 31 32def run(machine): 33 host = hosts.create_host(machine, servo_args=servo_args) 34 job.run_test('provision_Cr50TOT', host=host, cmdline_args=args, force=True) 35 36 37job.parallel_simple(run, machines) 38