blob: f0c450f759750b74b4bced7f34493d00340fbbf2 [file] [log] [blame]
David Haddock0bad4a32018-02-02 13:05:26 -08001# 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.full"
7PURPOSE = "Test forced update at OOBE with interruptions."
8TIME = "MEDIUM"
9TEST_CATEGORY = "Functional"
10TEST_CLASS = "platform"
11TEST_TYPE = "server"
12DEPENDENCIES = "servo, use_lid"
13ATTRIBUTES = "suite:bvt-perbuild"
14DOC = """
15This tests the forced autoupdate flow at OOBE with interruptions.
16
17During the update it will
181. Reboot
192. Disconnect the network for X minutes (X is configurable in the test).
203. Use servo to open/close lid.
21
22"""
23
24from autotest_lib.client.common_lib import utils
25
26args_dict = utils.args_to_dict(args)
27servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
28
29def run(machine):
30 host = hosts.create_host(machine, servo_args=servo_args)
31 job.run_test('autoupdate_ForcedOOBEUpdate', host=host, full_payload=True,
32 interrupt=True, max_updates=3, **args_dict)
33
34job.parallel_simple(run, machines)