Wai-Hong Tam | 0b9af49 | 2017-12-08 13:25:52 -0800 | [diff] [blame] | 1 | # Copyright 2017 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 | |
| 5 | from autotest_lib.server import utils |
| 6 | |
| 7 | AUTHOR = "Chrome OS Team" |
| 8 | NAME = "firmware_ECUpdateId" |
| 9 | PURPOSE = "Servo based EC test for updating EC ID for verifying EC EFS" |
| 10 | CRITERIA = "This test will fail if EC EFS misbehaves" |
Brent Peterson | 0671067 | 2020-10-27 14:54:05 +0000 | [diff] [blame] | 11 | ATTRIBUTES = "suite:faft_ec, suite:faft_ec_fw_qual, suite:faft_ec_tot" |
Wai-Hong Tam | 0b9af49 | 2017-12-08 13:25:52 -0800 | [diff] [blame] | 12 | TIME = "SHORT" |
| 13 | TEST_CATEGORY = "Functional" |
| 14 | TEST_CLASS = "firmware" |
| 15 | TEST_TYPE = "server" |
Patrick Georgi | ce52884 | 2021-01-28 22:13:16 +0100 | [diff] [blame] | 16 | JOB_RETRIES = 0 |
Brent Peterson | 61eccb5 | 2020-09-10 09:37:42 -0700 | [diff] [blame] | 17 | DEPENDENCIES = "ec:cros, servo_state:WORKING" |
Kshitij Shah | 1243ee5 | 2021-09-28 07:59:18 +0000 | [diff] [blame] | 18 | PY_VERSION = 3 |
Wai-Hong Tam | 0b9af49 | 2017-12-08 13:25:52 -0800 | [diff] [blame] | 19 | |
| 20 | DOC = """ |
| 21 | This test modifies the EC ID in AP firmware, reboots EC, and checks the next |
| 22 | boot that software sync and EFS works as intended or not. It also corrupts |
| 23 | one RW slot and checks if it is recovered. |
| 24 | """ |
| 25 | |
| 26 | args_dict = utils.args_to_dict(args) |
| 27 | servo_args = hosts.CrosHost.get_servo_arguments(args_dict) |
| 28 | |
| 29 | def run_ecupdateid(machine): |
| 30 | host = hosts.create_host(machine, servo_args=servo_args) |
| 31 | job.run_test("firmware_ECUpdateId", host=host, cmdline_args=args, |
| 32 | disable_sysinfo=True, dev_mode=False, tag="normal") |
| 33 | |
| 34 | parallel_simple(run_ecupdateid, machines) |