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