blob: e08a639ab9db9c7dce3252ff95e024dd53fb667d [file] [log] [blame]
# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
AUTHOR = "yuanpengni, ChromiumOS"
NAME = "autoupdate_MiniOS.with_exclusion.delta"
METADATA = {
"contacts": [
"chromeos-core-services@google.com",
],
"bug_component": "b:908319",
"criteria": "Test updating CrOS using delta payload with MiniOS excluded."
}
TIME = "MEDIUM"
TEST_TYPE = "server"
DEPENDENCIES = "servo_state:WORKING"
HW_DEPS = ['minios']
ATTRIBUTES = "suite:nbr-au-with-dlc"
DOC = """
MiniOS payload will be excluded after encountering certain types of failure.
This tests that MiniOS payload can be successfully excluded and not blocks the
OS or DLC update.
Use the `running_at_desk` arg when testing locally.
Example usage:
test_that autoupdate_MiniOS.with_exclusion.delta <DUT> --board=<board> --args="running_at_desk=True"
"""
from autotest_lib.client.common_lib import utils
args_dict = utils.args_to_dict(args)
servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
def run(machine):
host = hosts.create_host(machine, servo_args=servo_args)
job.run_test('autoupdate_MiniOS', host=host, full_payload=False,
with_dlc=True, with_exclusion=True, **args_dict)
job.parallel_simple(run, machines)