# 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." TIME = "MEDIUM" TEST_CATEGORY = "System" TEST_CLASS = "provision" TEST_TYPE = "Server" DEPENDENCIES = "servo,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) force = args_dict.get("force", "").lower() == "true" def run(machine): host = hosts.create_host(machine, servo_args=servo_args) job.run_test('provision_Cr50TOT', host=host, cmdline_args=args, force=force) job.parallel_simple(run, machines)