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_lv5" 18SUITE = "faft_lv5" 19TIME = "SHORT" 20TEST_CATEGORY = "Functional" 21TEST_CLASS = "firmware" 22TEST_TYPE = "server" 23JOB_RETRIES = 4 24 25DOC = """ 26This test requires firmware id matches fwid of shellball 27chromeos-firmwareupdate. On runtime, this test modifies shellball and runs 28autoupdate. Check kernel subkey version after boot with firmware B, and then 29recover firmware A and B to original shellball. 30""" 31 32args_dict = utils.args_to_dict(args) 33servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 34 35def run_updatekernelsubkeyversion(machine): 36 host = hosts.create_host(machine, servo_args=servo_args) 37 job.run_test("firmware_UpdateKernelSubkeyVersion", host=host, 38 cmdline_args=args, disable_sysinfo=True, dev_mode=True, 39 tag="dev") 40 41parallel_simple(run_updatekernelsubkeyversion, machines) 42