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