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 = "Chrome OS 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" 8DEPENDENCIES = "servo_state:WORKING" 9TIME = "SHORT" 10TEST_CATEGORY = "Functional" 11TEST_CLASS = "firmware" 12TEST_TYPE = "server" 13 14DOC = """ 15Test chromeos-firmwareupdate modes via --emulate, to avoid wearing out flash 16""" 17 18from autotest_lib.client.common_lib import utils 19 20args_dict = utils.args_to_dict(args) 21servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 22 23def run_firmwareupdate(machine): 24 # Setup the client machine. 25 host = hosts.create_host(machine, servo_args=servo_args) 26 job.run_test('firmware_UpdaterModes', host=host, cmdline_args=args) 27 28parallel_simple(run_firmwareupdate, machines) 29