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 5from autotest_lib.client.common_lib import utils 6 7AUTHOR = "Chromium OS" 8NAME = "autoupdate_Rollback.powerwash_before_rollback" 9TIME = "MEDIUM" 10TEST_CATEGORY = "Functional" 11TEST_CLASS = "platform" 12TEST_TYPE = "server" 13ATTRIBUTES = "suite:bvt-installer" 14 15DOC = """ 16This is a rollback test for Chrome OS releases. It first updates a machine and 17then invokes rollback to boot from its previously booted partition. 18 19It then powerwashes the device. 20 21It tests rollback using the update_engine_client rather than manipulating the 22UI. 23 24""" 25 26args_dict = utils.args_to_dict(args) 27job_repo_url = args_dict.get('job_repo_url') 28 29 30def 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. 39parallel_simple(run_test, machines) 40