| # Copyright 2018 The ChromiumOS Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| AUTHOR = "dhaddock, ChromiumOS" |
| NAME = "autoupdate_ForcedOOBEUpdate.interrupt.network.full" |
| METADATA = { |
| "contacts": [ |
| "chromeos-core-services@google.com", |
| "chromeos-sw-engprod@google.com" |
| ], |
| "bug_component": "b:908319", |
| "criteria": "Tests forced update at OOBE with network interruptions." |
| } |
| TIME = "MEDIUM" |
| TEST_TYPE = "server" |
| ATTRIBUTES = "suite:au-oobe" |
| DOC = """ |
| This tests the forced autoupdate flow at OOBE with interruptions. |
| |
| During the update it will |
| 1. Reboot |
| 2. Disconnect the network for X minutes (X is configurable in the test). |
| 3. Use powerd to suspend/resume. |
| |
| """ |
| |
| from autotest_lib.client.common_lib import utils |
| |
| args_dict = utils.args_to_dict(args) |
| |
| def run(machine): |
| host = hosts.create_host(machine) |
| job.run_test('autoupdate_ForcedOOBEUpdate', host=host, full_payload=True, |
| interrupt='network', **args_dict) |
| |
| job.parallel_simple(run, machines) |