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