• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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."
9TIME = "MEDIUM"
10TEST_CATEGORY = "System"
11TEST_CLASS = "provision"
12TEST_TYPE = "Server"
13DEPENDENCIES = "servo,cr50-ro-keyid:dev"
14
15DOC = """
16Update the Cr50 to the TOT image from the latest reef build. This requires that
17cr50 is running a dev signed RO.
18"""
19
20from autotest_lib.client.common_lib import error, utils
21
22
23if 'args_dict' not in locals():
24    args_dict = {}
25
26args_dict.update(utils.args_to_dict(args))
27servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
28
29force = args_dict.get("force", "").lower() == "true"
30
31def run(machine):
32    host = hosts.create_host(machine, servo_args=servo_args)
33    job.run_test('provision_Cr50TOT', host=host, cmdline_args=args, force=force)
34
35
36job.parallel_simple(run, machines)
37