Home | History | Annotate | Download | only in firmware_CompareChipFwToShellBall
      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 
      5 AUTHOR = "Chrome OS Team"
      6 NAME = "firmware_CompareChipFwToShellBall"
      7 PURPOSE = "Compare the chip firmware versions to those in the shellball"
      8 CRITERIA = "This test will pass if installed and available firmware match."
      9 TIME = "SHORT"
     10 TEST_CATEGORY = "Functional"
     11 TEST_CLASS = "firmware"
     12 TEST_TYPE = "server"
     13 
     14 DOC = """
     15 This test compares the installed chip firmware versions to those in the
     16 shallball.  If they no not match, it will fail.
     17 """
     18 
     19 from autotest_lib.client.common_lib import utils
     20 
     21 args_dict = utils.args_to_dict(args)
     22 servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
     23 
     24 def 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 
     31 parallel_simple(run_compare_chip, machines)
     32