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 5from autotest_lib.server import utils 6 7AUTHOR = "Chrome OS Team" 8NAME = "firmware_UpdateKernelSubkeyVersion" 9PURPOSE = """ 10Servo based firmware update test, and check kernel subkey version. 11""" 12CRITERIA = """ 13This test will fail if following requrements are met: 141. fwid does not match shellball's (/usr/sbin/chromeos-firmwareupdate) fwid 152. Kernel subkey version does not match original kernel subkey version. 16""" 17ATTRIBUTES = "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" 18TIME = "SHORT" 19TEST_CATEGORY = "Functional" 20TEST_CLASS = "firmware" 21TEST_TYPE = "server" 22JOB_RETRIES = 4 23 24DOC = """ 25This test requires firmware id matches fwid of shellball 26chromeos-firmwareupdate. On runtime, this test modifies shellball and runs 27autoupdate. Check kernel subkey version after boot with firmware B, and then 28recover firmware A and B to original shellball. 29""" 30 31args_dict = utils.args_to_dict(args) 32servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 33 34def 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 40parallel_simple(run_updatekernelsubkeyversion, machines) 41