1# Copyright 2022 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 = "yuanpengni, Chromium OS" 6NAME = "autoupdate_MiniOS.with_exclusion.full" 7TIME = "MEDIUM" 8PURPOSE = "Tests MiniOS update." 9TEST_CATEGORY = "Functional" 10TEST_CLASS = "platform" 11TEST_TYPE = "server" 12DEPENDENCIES = "servo_state:WORKING" 13ATTRIBUTES = "suite:nbr" 14PY_VERSION = 3 15DOC = """ 16MiniOS payload will be excluded after encountering certain types of failure. 17This tests that MiniOS payload can be successfully excluded and not blocks the 18OS or DLC update. 19Use the `running_at_desk` arg when testing locally. 20 21Example usage: 22test_that autoupdate_MiniOS.with_exclusion.full <DUT> --board=<board> --args="running_at_desk=True" 23""" 24 25from autotest_lib.client.common_lib import utils 26args_dict = utils.args_to_dict(args) 27servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 28 29def run(machine): 30 host = hosts.create_host(machine, servo_args=servo_args) 31 job.run_test('autoupdate_MiniOS', host=host, full_payload=True, 32 with_dlc=True, with_exclusion=True, **args_dict) 33 34job.parallel_simple(run, machines) 35