• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.full"
7TIME = "MEDIUM"
8PURPOSE = "Tests an N-to-N update with Nebraska."
9TEST_CATEGORY = "Functional"
10TEST_CLASS = "platform"
11TEST_TYPE = "server"
12ATTRIBUTES = "suite:bvt-inline, suite:infra_qual"
13JOB_RETRIES = 2
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
19We supply a job_repo_url to the test when running locally. In the lab this will
20be passed directly. The job_repo_url is a link to the autotest packages on a
21devserver. The test uses it to find the correct payload to use.
22
23To get a list of available devservers to use execute this command:
24atest server list | grep devserver
25
26Example usage:
27test_that autoupdate_Basic <DUT> --board=<board> --args="job_repo_url=http://<devserver IP>:8082/static/<board>-release/RXX-XXXXX.X.X/autotest/packages"
28"""
29
30from autotest_lib.client.common_lib import utils
31args_dict = utils.args_to_dict(args)
32
33def run(machine):
34    host = hosts.create_host(machine)
35    job.run_test('autoupdate_Basic', host=host, full_payload=True,
36                 **args_dict)
37
38job.parallel_simple(run, machines)
39