xref: /aosp_15_r20/external/autotest/server/site_tests/fleet_FirmwareUpdate/control.rw (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1# Copyright (c) 2021 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 Fleet Software team"
6NAME = "fleet_FirmwareUpdate"
7PURPOSE = "Update OS bundled firmware and verify DUT is good"
8ATTRIBUTES = "suite:fleet_firmware_update"
9CRITERIA = "This test will fail if the device failed to boot after update firmware"
10TIME = "SHORT"
11TEST_CATEGORY = "Functional"
12TEST_CLASS = "firmware"
13TEST_TYPE = "server"
14JOB_RETRIES = 0
15PY_VERSION = 3
16
17
18DOC = """
19This test is designed to simulate the same firmware update behavior that
20a ChromeOS user would have. We don't need OS update since it should be handled
21by prejob(provision) already. And this test will update OS bundled firmware(RW only)
22from the DUT and doing some post-update validation. The test includes below steps:
23
241. Pre-update validation.
252. Update DUT to OS bundled firmware via /usr/sbin/chromeos-firmwareupdate(RW only).
263. Reboot.
274. Post-update validation.
28"""
29
30
31def run(machine):
32    host = hosts.create_host(machine)
33    job.run_test('fleet_FirmwareUpdate', host=host)
34
35job.parallel_simple(run, machines)