xref: /aosp_15_r20/external/autotest/server/site_tests/autoupdate_Basic/control.delta (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1# Copyright 2020 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_Basic.delta"
7TIME = "MEDIUM"
8PURPOSE = "Tests an N-to-N update with Nebraska."
9TEST_CATEGORY = "Functional"
10TEST_CLASS = "platform"
11TEST_TYPE = "server"
12ATTRIBUTES = "suite:au-perbuild"
13PY_VERSION = 3
14DOC = """
15This tests an N-to-N update. That means it will update to the same version
16that the DUT was provisioned with. This test will be used in the CQ to ensure
17changes don't break autoupdate.
18
19In the lab, a job_repo_url will be passed directly to the test. It contains
20information about the build to use and the IP address of lab cache server to
21download update payloads from. Local runs can use cache servers as well but
22the setup is fairly complicated.
23
24Instead you can use the `running_at_desk` arg when running tests locally to
25avoid the extra setup needed to access cache servers from your workstation.
26`running_at_desk` will copy payloads from gs://chromeos-image-archive/ to a
27public bucket that is accessible without additional configuration.
28
29Example usage:
30
31The current version on the DUT will be used for the update:
32test_that <DUT> autoupdate_Basic.delta --board=<board> --args="running_at_desk=True"
33"""
34
35from autotest_lib.client.common_lib import utils
36args_dict = utils.args_to_dict(args)
37
38def run(machine):
39    host = hosts.create_host(machine)
40    job.run_test('autoupdate_Basic', host=host, full_payload=False,
41                 **args_dict)
42
43job.parallel_simple(run, machines)
44