xref: /aosp_15_r20/external/autotest/server/site_tests/firmware_UpdaterModes/control (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1# Copyright (c) 2014 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
5AUTHOR = "ChromeOS Team"
6NAME = "firmware_UpdaterModes"
7ATTRIBUTES = "suite:faft_bios, suite:faft_bios_ro_qual, suite:faft_bios_rw_qual, suite:faft_lv5, suite:faft_bios_tot, suite:distributed_lab_qual_faft"
8DEPENDENCIES = "servo_state:WORKING"
9TIME = "SHORT"
10TEST_CATEGORY = "Functional"
11TEST_CLASS = "firmware"
12TEST_TYPE = "server"
13JOB_RETRIES = 0
14PY_VERSION = 3
15
16DOC = """
17Test chromeos-firmwareupdate modes via --emulate, to avoid wearing out flash
18"""
19
20from autotest_lib.client.common_lib import utils
21
22args_dict = utils.args_to_dict(args)
23servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
24
25def run_firmwareupdate(machine):
26    # Setup the client machine.
27    host = hosts.create_host(machine, servo_args=servo_args)
28    job.run_test('firmware_UpdaterModes', host=host, cmdline_args=args)
29
30parallel_simple(run_firmwareupdate, machines)
31