Home | History | Annotate | Download | only in autoupdate_ForcedOOBEUpdate
      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 DEPENDENCIES = "servo"
     13 ATTRIBUTES = "suite:bvt-perbuild"
     14 DOC = """
     15 This tests the forced autoupdate flow at OOBE with interruptions.
     16 
     17 During the update it will
     18 1. Reboot
     19 2. Disconnect the network for X minutes (X is configurable in the test).
     20 3. Use servo to open/close lid.
     21 
     22 """
     23 
     24 from autotest_lib.client.common_lib import utils
     25 
     26 args_dict = utils.args_to_dict(args)
     27 servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
     28 
     29 def 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 
     34 job.parallel_simple(run, machines)
     35