Home | History | Annotate | Download | only in firmware_UpdateKernelSubkeyVersion
      1 # Copyright (c) 2012 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 from autotest_lib.server import utils
      6 
      7 AUTHOR = "Chrome OS Team"
      8 NAME = "firmware_UpdateKernelSubkeyVersion"
      9 PURPOSE = """
     10 Servo based firmware update test, and check kernel subkey version.
     11 """
     12 CRITERIA = """
     13 This test will fail if following requrements are met:
     14 1. fwid does not match shellball's (/usr/sbin/chromeos-firmwareupdate) fwid
     15 2. Kernel subkey version does not match original kernel subkey version.
     16 """
     17 ATTRIBUTES = "suite:faft, suite:faft_bios, suite:faft_bios_au_1, suite:faft_bios_au_2, suite:faft_bios_au_3, suite:faft_dev, suite:faft_lv5, suite:faft_bios_ec3po, suite:faft_bios_tot"
     18 TIME = "SHORT"
     19 TEST_CATEGORY = "Functional"
     20 TEST_CLASS = "firmware"
     21 TEST_TYPE = "server"
     22 JOB_RETRIES = 4
     23 
     24 DOC = """
     25 This test requires firmware id matches fwid of shellball
     26 chromeos-firmwareupdate. On runtime, this test modifies shellball and runs
     27 autoupdate. Check kernel subkey version after boot with firmware B, and then
     28 recover firmware A and B to original shellball.
     29 """
     30 
     31 args_dict = utils.args_to_dict(args)
     32 servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
     33 
     34 def run_updatekernelsubkeyversion(machine):
     35     host = hosts.create_host(machine, servo_args=servo_args)
     36     job.run_test("firmware_UpdateKernelSubkeyVersion", host=host,
     37                  cmdline_args=args, disable_sysinfo=True, dev_mode=True,
     38                  tag="dev")
     39 
     40 parallel_simple(run_updatekernelsubkeyversion, machines)
     41