1# Copyright (c) 2014 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 = "platform_LabFirmwareUpdate" 7PURPOSE = "Compare shellball firmware version to installed version, run chromeos-firmwareupdate if different ." 8CRITERIA = "Update device firmware to match shellball." 9TIME = "SHORT" 10TEST_CATEGORY = "Functional" 11TEST_CLASS = "firmware" 12TEST_TYPE = "server" 13ATTRIBUTES = "suite:faft_flashrom" 14DEPENDENCIES = "lab_fw_update" 15 16DOC = """ 17This test compares the installed BIOS and EC versions to those in the 18shallball. If they are not the same, execute chromeos-firmwareupdate. 19Device needs to have software write protect disable. 20""" 21 22def run(machine): 23 host = hosts.create_host(machine) 24 25 job.run_test('platform_LabFirmwareUpdate', host=host) 26 27parallel_simple(run, machines) 28