xref: /aosp_15_r20/external/autotest/server/site_tests/autoupdate_Lacros/control.full.m2n (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 = "dhaddock, Chromium OS"
6NAME = "autoupdate_Lacros.m2n"
7TIME = "MEDIUM"
8PURPOSE = "Tests an M-to-N update and check rootfs-lacros."
9TEST_CATEGORY = "Functional"
10TEST_CLASS = "platform"
11TEST_TYPE = "server"
12ATTRIBUTES = "suite:au-m2n"
13PY_VERSION = 3
14DOC = """
15Logs in and launches rootfs-lacros before and after a M-to-N autoupdate.
16
17Use the `running_at_desk` arg when testing locally.
18
19Example usage:
20test_that autoupdate_Lacros <DUT> --board=<board> --args="job_repo_url=http://<IP>:8082/static/<board>-release/RXX-XXXXX.X.X/autotest/packages running_at_desk=True"
21"""
22
23from autotest_lib.client.common_lib import utils
24args_dict = utils.args_to_dict(args)
25
26def run(machine):
27    host = hosts.create_host(machine)
28    job.run_test('autoupdate_Lacros', host=host, full_payload=True, m2n=True,
29                 **args_dict)
30
31job.parallel_simple(run, machines)
32