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 = "kyleshima, Chromium OS" 6NAME = "autoupdate_FromUI.full" 7PURPOSE = "Tests updating from the UI." 8TIME = "MEDIUM" 9TEST_CATEGORY = "Functional" 10TEST_CLASS = "platform" 11TEST_TYPE = "server" 12ATTRIBUTES = "suite:au-perbuild" 13DOC = """ 14This tests that an update can be triggered by clicking the 'Check for updates' 15button in the Chrome OS Settings app. 16 17test_that <hostname>.cros autoupdate_FromUI.full --args="job_repo_url='http://<IP>:<port>/static/<board>-release/RXX-XXXX.X.X/autotest/packages'" 18""" 19 20from autotest_lib.client.common_lib import utils 21 22args_dict = utils.args_to_dict(args) 23 24def run(machine): 25 host = hosts.create_host(machine) 26 job.run_test('autoupdate_FromUI', host=host, full_payload=True, 27 **args_dict) 28 29job.parallel_simple(run, machines) 30