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