• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.ROCanUpdateRW"
9PURPOSE = """
10Validates that the RO fingerprint firmware can update the RW firmware.
11"""
12CRITERIA = """
13Fails if the RO fingerprint firmware cannot update the RW firmware.
14"""
15ATTRIBUTES = "suite:fingerprint"
16TIME = "SHORT"
17TEST_CATEGORY = "Functional"
18TEST_CLASS = "firmware"
19TEST_TYPE = "server"
20DEPENDENCIES = "servo_state:WORKING, fingerprint"
21JOB_RETRIES = 0
22
23# This test uses futility and dev keys from autotest/files/server/cros/faft.
24REQUIRE_SSP = True
25
26DOC = """
27Flashes RW firmware with a version string that ends in '.rb0'
28(has rollback ID '0') and validates that it is running. Then flashes RW
29firmware with version string that ends in '.dev' (also has rollback ID '0')
30and validates that it is running.
31"""
32
33test_images = [ 'TEST_IMAGE_DEV', 'TEST_IMAGE_DEV_RB_ZERO' ]
34
35args_dict = utils.args_to_dict(args)
36servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
37
38def run(machine):
39    host = hosts.create_host(machine, servo_args=servo_args)
40    job.run_test("firmware_Fingerprint", host=host,
41                 test_exe="ro_can_update_rw.sh",
42                 test_exe_args=test_images,
43                 use_dev_signed_fw=True)
44
45parallel_simple(run, machines)
46