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 5 AUTHOR = "Chrome OS Team" 6 NAME = "firmware_FWtries" 7 ATTRIBUTES = "suite:faft, suite:faft_bios, suite:faft_normal, suite:faft_lv1, suite:faft_normal_ryu, suite:faft_bios_ec3po" 8 SUITE = "faft,faft_bios,faft_normal,faft_lv1,faft_normal_ryu,faft_bios_ec3po" 9 TIME = "SHORT" 10 TEST_CATEGORY = "Functional" 11 TEST_CLASS = "firmware" 12 TEST_TYPE = "server" 13 JOB_RETRIES = 4 14 15 DOC = """ 16 Boot with firmware B until fwb_tries count down to 0 17 18 After each reboot check the value of mainfw_act, mainfw_type, fwb_tries, 19 tried_fwb 20 """ 21 22 from autotest_lib.client.common_lib import utils 23 24 args_dict = utils.args_to_dict(args) 25 servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 26 27 def 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 33 parallel_simple(run_fwtries, machines) 34