blob: ee93d85fb1097257e23dd4824112db55b4f59a14 [file] [log] [blame]
# Copyright (c) 2012 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 = "Chrome OS Team"
NAME = "platform_InstallRecoveryImage"
TIME = "MEDIUM"
TEST_CATEGORY = "Install"
TEST_CLASS = "platform"
TEST_TYPE = "server"
DOC = """
This test installs a specified recovery image onto a servo-connected DUT.
This is useful for testing the recovery process and imaging servo-connected
Devices under Test (DUTs).
Here is the command to install a recovery image;
run_remote_tests --args='image=<recovery_image_path_on_host>'
--remote=<IP addres>
--board=<board name>
platform_InstallRecoveryImage
"""
def run(machine):
opts = utils.args_to_dict(args)
image = opts.get('image')
# Setup the client machine.
host = hosts.create_host(machine, require_servo=True)
job.run_test("platform_InstallRecoveryImage", host=host, cmdline_args=None,
use_pyauto=False, disable_sysinfo=True, image=image)
parallel_simple(run, machines)