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 5AUTHOR = "dhaddock, Chromium OS" 6NAME = "autoupdate_ForcedOOBEUpdate.interrupt.network.full" 7PURPOSE = "Test forced update at OOBE with network interruptions." 8TIME = "MEDIUM" 9TEST_CATEGORY = "Functional" 10TEST_CLASS = "platform" 11TEST_TYPE = "server" 12ATTRIBUTES = "suite:au-oobe" 13DOC = """ 14This tests the forced autoupdate flow at OOBE with interruptions. 15 16During the update it will 171. Reboot 182. Disconnect the network for X minutes (X is configurable in the test). 193. Use powerd to suspend/resume. 20 21""" 22 23from autotest_lib.client.common_lib import utils 24 25args_dict = utils.args_to_dict(args) 26 27def run(machine): 28 host = hosts.create_host(machine) 29 job.run_test('autoupdate_ForcedOOBEUpdate', host=host, full_payload=True, 30 interrupt='network', **args_dict) 31 32job.parallel_simple(run, machines) 33