xref: /aosp_15_r20/external/autotest/server/site_tests/autoupdate_Cellular/control.delta.sprint (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1# Copyright 2018 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_Cellular.delta.sprint"
7PURPOSE = "Test autoupdate over cellular with a delta payload."
8TIME = "SHORT"
9TEST_CATEGORY = "Functional"
10TEST_CLASS = "platform"
11TEST_TYPE = "server"
12ATTRIBUTES = "suite:cellular_au_nightly"
13DEPENDENCIES = "carrier:sprint"
14PY_VERSION = 3
15DOC = """
16This tests autoupdate over a cellular connection.
17
18To run locally you need to pass in a job_repo_url arg. This is used to tell
19the test what build it is running. In the lab this is setup when the DUT is
20provisioned.
21
22test_that <hostname>.cros autoupdate_Cellular.delta --args="job_repo_url='http://<IP>:<port>/static/<board>-release/RXX-XXXX.X.X/autotest/packages'"
23
24"""
25
26from autotest_lib.client.common_lib import utils
27
28args_dict = utils.args_to_dict(args)
29
30def run(machine):
31    host = hosts.create_host(machine)
32    job.run_test('autoupdate_Cellular', host=host, full_payload=False,
33                 **args_dict)
34
35job.parallel_simple(run, machines)
36