• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2012 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 = "Chrome OS Team"
8NAME = "platform_InstallRecoveryImage.local"
9TIME = "MEDIUM"
10TEST_CATEGORY = "Install"
11TEST_CLASS = "platform"
12TEST_TYPE = "server"
13
14DOC = """
15This test installs a recovery image that's already on the usb stick attached to
16a servo onto a servo-connected DUT.
17This is useful for testing the recovery process and imaging servo-connected
18Devices under Test (DUTs).
19Here is the command to install a recovery image;
20test_that --board=<board name> <IP addres> platform_InstallRecoveryImage.local
21"""
22
23args_dict = utils.args_to_dict(args)
24servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
25
26def run(machine):
27    # Setup the client machine.
28    host = hosts.create_host(machine, servo_args=servo_args)
29    job.fast = True
30    job.run_test("platform_InstallRecoveryImage", host=host,
31                 disable_sysinfo=True, image=None, local=True)
32
33parallel_simple(run, machines)
34