1# Copyright 2017 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_ForcedOOBEUpdate.full" 7PURPOSE = "Test forced update at OOBE." 8TIME = "MEDIUM" 9TEST_CATEGORY = "Functional" 10TEST_CLASS = "platform" 11TEST_TYPE = "server" 12ATTRIBUTES = "suite:au-oobe, suite:infra_qual" 13PY_VERSION = 3 14DOC = """ 15This tests the forced autoupdate flow at OOBE. 16 17Debugging steps: 18This test cannot be debugged locally easily because 191. Using a devserver on your workstation is blocked by SNAX 202. The test relies on reading a job_repo_url which is only set by runs 21initiated in the lab. 22 23You will need to use a lab DUT and a lab devserver but kick it off from your 24workstation. You can start by going to cautotest and locking a DUT. 25 26You will need to pass a job_repo_url param to test_that. 27 28The test needs to be able to ssh into devservers. To ssh into lab devservers 29Follow these instructions to setup the ssh access to lab devservers: 30https://sites.google.com/a/google.com/chromeos/for-team-members/infrastructure/chromeos-admin/devserver-access 31 32Use this instruction to find the list of lab devservers: 33atest server list | grep devserver 34 35Get access to "Access To Chrome Lab or Cautotest" from: 36https://sphinx.corp.google.com/sphinx/#accessChangeRequest:systemName=default-mnp-use-cases 37 38Then run the test as follows: 39test_that <hostname>.cros autoupdate_ForcedOOBEUpdate.full --args="job_repo_url='http://<IP>:<PORT>/static/<board>-release/RXX-XXXX.X.X/autotest/packages'" 40 41- IP: The IP of the devserver you are running the test agains: 42- PORT: The port of the devserver, normally 8082 43""" 44 45from autotest_lib.client.common_lib import utils 46 47args_dict = utils.args_to_dict(args) 48 49def run(machine): 50 host = hosts.create_host(machine) 51 job.run_test('autoupdate_ForcedOOBEUpdate', host=host, full_payload=True, 52 **args_dict) 53 54job.parallel_simple(run, machines) 55