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_FWupdate" 7TIME = "MEDIUM" 8TEST_CATEGORY = "Functional" 9TEST_CLASS = "firmware" 10TEST_TYPE = "server" 11 12DOC = """ 13RO+RW firmware update using chromeos-firmwareupdate --mode=recovery 14 15Required arguments: 16 test_that ... --args "old_bios=/path/to/old.bin new_bios=/path/to/new.bin" 17 18The *_bios arguments can also be split into separate _bios_ro and _bios_rw args. 19""" 20 21from autotest_lib.client.common_lib import utils 22 23args_dict = utils.args_to_dict(args) 24servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 25 26def run_firmwareupdate(machine): 27 # Setup the client machine. 28 host = hosts.create_host(machine, servo_args=servo_args) 29 job.run_test('firmware_FWupdate', test_name=NAME, host=host, 30 cmdline_args=args) 31 32parallel_simple(run_firmwareupdate, machines) 33