• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 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_FWtries"
7ATTRIBUTES = "suite:faft, suite:faft_bios, suite:faft_bios_au_1, suite:faft_bios_au_2, suite:faft_bios_au_3, suite:faft_normal, suite:faft_lv1, suite:faft_normal_ryu, suite:faft_bios_ec3po, suite:faft_bios_tot"
8TIME = "SHORT"
9TEST_CATEGORY = "Functional"
10TEST_CLASS = "firmware"
11TEST_TYPE = "server"
12JOB_RETRIES = 4
13
14DOC = """
15Boot with firmware B until fwb_tries count down to 0
16
17After each reboot check the value of mainfw_act, mainfw_type, fwb_tries,
18tried_fwb
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_fwtries(machine):
27    # Setup the client machine.
28    host = hosts.create_host(machine, servo_args=servo_args)
29    job.run_test('firmware_FWtries', host=host, cmdline_args=args,
30                 dev_mode=False, tag="normal")
31
32parallel_simple(run_fwtries, machines)
33