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"
13DOC = """
14This tests an N-to-N update. That means it will update to the same version
15that the DUT was provisioned with. This test will be used in the CQ to ensure
16changes don't break autoupdate.
17
18We supply a job_repo_url to the test when running locally. In the lab this will
19be passed directly. The job_repo_url is a link to the autotest packages on a
20devserver. The test uses it to find the correct payload to use.
21
22To get a list of available devservers to use execute this command:
23atest server list | grep devserver
24
25Example usage:
26test_that autoupdate_Basic <DUT> --board=<board> --args="job_repo_url=http://<devserver IP>:8082/static/<board>-release/RXX-XXXXX.X.X/autotest/packages"
27"""
28
29from autotest_lib.client.common_lib import utils
30args_dict = utils.args_to_dict(args)
31
32def run(machine):
33    host = hosts.create_host(machine)
34    job.run_test('autoupdate_Basic', host=host, full_payload=False,
35                 **args_dict)
36
37job.parallel_simple(run, machines)
38