xref: /aosp_15_r20/external/autotest/server/site_tests/autoupdate_MiniOS/control.with_os.delta (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
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_os.delta"
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 = """
16This tests the MiniOS update with the platform (OS) update.
17Use the `running_at_desk` arg when testing locally.
18
19Example usage:
20test_that autoupdate_MiniOS.with_os.delta <DUT> --board=<board> --args="running_at_desk=True"
21"""
22
23from autotest_lib.client.common_lib import utils
24args_dict = utils.args_to_dict(args)
25servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
26
27def run(machine):
28    host = hosts.create_host(machine, servo_args=servo_args)
29    job.run_test('autoupdate_MiniOS', host=host, full_payload=False,
30                 with_os=True, **args_dict)
31
32job.parallel_simple(run, machines)
33