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