Home | History | Annotate | Download | only in autoupdate_Rollback
      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 from autotest_lib.client.common_lib import utils
      6 
      7 AUTHOR = "Chromium OS"
      8 NAME = "autoupdate_Rollback.powerwash_before_rollback"
      9 TIME = "MEDIUM"
     10 TEST_CATEGORY = "Functional"
     11 TEST_CLASS = "platform"
     12 TEST_TYPE = "server"
     13 ATTRIBUTES = "suite:bvt-installer"
     14 
     15 DOC = """
     16 This is a rollback test for Chrome OS releases. It first updates a machine and
     17 then invokes rollback to boot from its previously booted partition.
     18 
     19 It then powerwashes the device.
     20 
     21 It tests rollback using the update_engine_client rather than manipulating the
     22 UI.
     23 
     24 """
     25 
     26 args_dict = utils.args_to_dict(args)
     27 job_repo_url = args_dict.get('job_repo_url')
     28 
     29 
     30 def run_test(machine):
     31     """Execute a test configuration on a given machine."""
     32     host = hosts.create_host(machine)
     33     job.run_test("autoupdate_Rollback", host=host,
     34                  job_repo_url=job_repo_url, powerwash_before_rollback=True,
     35                  disable_sysinfo=True)
     36 
     37 
     38 # Invoke parallel tests.
     39 parallel_simple(run_test, machines)
     40