blob: e4a7d356a017404608340f1a30bfa2db94b68ce2 [file] [log] [blame]
# Copyright 2018 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from autotest_lib.client.common_lib import utils
AUTHOR = "Chromium OS"
NAME = "autoupdate_Rollback.powerwash_before_rollback"
TEST_CATEGORY = "Functional"
TEST_CLASS = "platform"
TEST_TYPE = "server"
DOC = """
This is a rollback test for Chrome OS releases. It first updates a machine and
then invokes rollback to boot from its previously booted partition.
It then powerwashes the device.
It tests rollback using the update_engine_client rather than manipulating the
args_dict = utils.args_to_dict(args)
job_repo_url = args_dict.get('job_repo_url')
def run_test(machine):
"""Execute a test configuration on a given machine."""
host = hosts.create_host(machine)
job.run_test("autoupdate_Rollback", host=host,
job_repo_url=job_repo_url, powerwash_before_rollback=True,
# Invoke parallel tests.
parallel_simple(run_test, machines)