David Haddock | 0bad4a3 | 2018-02-02 13:05:26 -0800 | [diff] [blame] | 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" |
David Haddock | 8efca4d | 2019-07-23 19:08:03 -0700 | [diff] [blame] | 6 | NAME = "autoupdate_ForcedOOBEUpdate.interrupt.reboot.full" |
| 7 | PURPOSE = "Test forced update at OOBE with reboot interruptions." |
David Haddock | 0bad4a3 | 2018-02-02 13:05:26 -0800 | [diff] [blame] | 8 | TIME = "MEDIUM" |
| 9 | TEST_CATEGORY = "Functional" |
| 10 | TEST_CLASS = "platform" |
| 11 | TEST_TYPE = "server" |
Kyle Shimabukuro | 3370757 | 2020-01-31 09:45:19 -0800 | [diff] [blame^] | 12 | ATTRIBUTES = "suite:au-oobe" |
David Haddock | 0bad4a3 | 2018-02-02 13:05:26 -0800 | [diff] [blame] | 13 | DOC = """ |
| 14 | This tests the forced autoupdate flow at OOBE with interruptions. |
| 15 | |
David Haddock | 8efca4d | 2019-07-23 19:08:03 -0700 | [diff] [blame] | 16 | During the update it will reboot. |
David Haddock | 0bad4a3 | 2018-02-02 13:05:26 -0800 | [diff] [blame] | 17 | |
| 18 | """ |
| 19 | |
| 20 | from autotest_lib.client.common_lib import utils |
| 21 | |
| 22 | args_dict = utils.args_to_dict(args) |
David Haddock | 0bad4a3 | 2018-02-02 13:05:26 -0800 | [diff] [blame] | 23 | |
| 24 | def run(machine): |
David Haddock | afde765 | 2018-04-13 13:44:48 -0700 | [diff] [blame] | 25 | host = hosts.create_host(machine) |
David Haddock | 0bad4a3 | 2018-02-02 13:05:26 -0800 | [diff] [blame] | 26 | job.run_test('autoupdate_ForcedOOBEUpdate', host=host, full_payload=True, |
David Haddock | 8efca4d | 2019-07-23 19:08:03 -0700 | [diff] [blame] | 27 | interrupt='reboot', max_updates=2, **args_dict) |
David Haddock | 0bad4a3 | 2018-02-02 13:05:26 -0800 | [diff] [blame] | 28 | |
| 29 | job.parallel_simple(run, machines) |