1# Copyright 2017 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 = "ChromeOS Team" 6NAME = "firmware_CompareChipFwToShellBall" 7PURPOSE = "Compare the chip firmware versions to those in the shellball" 8CRITERIA = "This test will pass if installed and available firmware match." 9DEPENDENCIES = "servo_state:WORKING" 10TIME = "SHORT" 11TEST_CATEGORY = "Functional" 12TEST_CLASS = "firmware" 13TEST_TYPE = "server" 14JOB_RETRIES = 0 15PY_VERSION = 3 16 17DOC = """ 18This test compares the installed chip firmware versions to those in the 19shallball. If they no not match, it will fail. 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_compare_chip(machine): 28 # Setup the client machine. 29 host = hosts.create_host(machine, servo_args=servo_args) 30 job.run_test('firmware_CompareChipFwToShellBall', 31 host=host, cmdline_args=args) 32 33 34parallel_simple(run_compare_chip, machines) 35