1# Copyright 2019 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_Fingerprint.ObeysRollback" 9PURPOSE = """ 10Verify that fingerprint firmware rollback functions correctly. 11""" 12CRITERIA = """ 13Fails if the rollback minimum version is not updated or min rollback version 14does not prevent running an older version. 15""" 16ATTRIBUTES = "suite:fingerprint" 17TIME = "SHORT" 18TEST_CATEGORY = "Functional" 19TEST_CLASS = "firmware" 20TEST_TYPE = "server" 21DEPENDENCIES = "servo, fingerprint" 22JOB_RETRIES = 0 23 24DOC = """ 25Flashes new RW firmware with a rollback ID of '1' and verifies that all 26rollback state is set correctly. Then attempts to flash RW firmware with 27rollback ID of '0' and verifies that the RO version of firmware is running 28(i.e., not running older version). Finally, flashes RW firmware with rollback 29ID of '9' and validates that the RW version of '9' is running. 30""" 31 32test_images = [ 'TEST_IMAGE_DEV_RB_ZERO', 33 'TEST_IMAGE_DEV_RB_ONE', 34 'TEST_IMAGE_DEV_RB_NINE'] 35 36args_dict = utils.args_to_dict(args) 37servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 38 39def run(machine): 40 host = hosts.create_host(machine, servo_args=servo_args) 41 job.run_test("firmware_Fingerprint", host=host, 42 test_exe="obeys_rollback.sh", 43 test_exe_args=test_images, 44 use_dev_signed_fw=True) 45 46parallel_simple(run, machines) 47