Home | History | Annotate | Download | only in platform_InstallTestImage
      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 
      5 from autotest_lib.server import test
      6 
      7 class platform_InstallTestImage(test.test):
      8     """Installs a specified test image onto a servo-connected DUT."""
      9     version = 1
     10 
     11     def run_once(self, host, image_url):
     12         """Install image from URL `image_url` on `host`.
     13 
     14         @param host Host object representing DUT to be re-imaged.
     15         @param image_url URL of a test image to be installed.
     16 
     17         """
     18         host.servo_install(image_url=image_url)
     19