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 = "Chrome OS 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." 9TIME = "SHORT" 10TEST_CATEGORY = "Functional" 11TEST_CLASS = "firmware" 12TEST_TYPE = "server" 13 14DOC = """ 15This test compares the installed chip firmware versions to those in the 16shallball. If they no not match, it will fail. 17""" 18 19from autotest_lib.client.common_lib import utils 20 21args_dict = utils.args_to_dict(args) 22servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 23 24def run_compare_chip(machine): 25 # Setup the client machine. 26 host = hosts.create_host(machine, servo_args=servo_args) 27 job.run_test('firmware_CompareChipFwToShellBall', 28 host=host, cmdline_args=args) 29 30 31parallel_simple(run_compare_chip, machines) 32