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" 13# TODO: Add this back to suite:bvt-installer once crbug/988481 is addressed 14ATTRIBUTES = "" 15 16DOC = """ 17This is a rollback test for Chrome OS releases. It first updates a machine and 18then invokes rollback to boot from its previously booted partition. 19 20It then powerwashes the device. 21 22It tests rollback using the update_engine_client rather than manipulating the 23UI. 24 25""" 26 27args_dict = utils.args_to_dict(args) 28job_repo_url = args_dict.get('job_repo_url') 29 30 31def run_test(machine): 32 """Execute a test configuration on a given machine.""" 33 host = hosts.create_host(machine) 34 job.run_test("autoupdate_Rollback", host=host, 35 job_repo_url=job_repo_url, powerwash_before_rollback=True, 36 disable_sysinfo=True) 37 38 39# Invoke parallel tests. 40parallel_simple(run_test, machines) 41