blob: 244050fcf68d6df3d2219021cb69cd04823ab15b [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"
David Haddock0bad4a32018-02-02 13:05:26 -080012ATTRIBUTES = "suite:bvt-perbuild"
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).
David Haddockafde7652018-04-13 13:44:48 -0700193. Use powerd to suspend/resume.
David Haddock0bad4a32018-02-02 13:05:26 -080020
21"""
22
23from autotest_lib.client.common_lib import utils
24
25args_dict = utils.args_to_dict(args)
David Haddock0bad4a32018-02-02 13:05:26 -080026
27def run(machine):
David Haddockafde7652018-04-13 13:44:48 -070028 host = hosts.create_host(machine)
David Haddock0bad4a32018-02-02 13:05:26 -080029 job.run_test('autoupdate_ForcedOOBEUpdate', host=host, full_payload=True,
David Haddockafde7652018-04-13 13:44:48 -070030 interrupt=True, max_updates=2, **args_dict)
David Haddock0bad4a32018-02-02 13:05:26 -080031
32job.parallel_simple(run, machines)