Home | History | Annotate | Download | only in brillo_RecoverFromBadImage
      1 # Copyright 2015 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.client.common_lib import utils
      6 
      7 AUTHOR = 'garnold'
      8 NAME = 'brillo_RecoverFromBadImage'
      9 TIME = 'MEDIUM'
     10 TEST_CATEGORY = 'Functional'
     11 TEST_TYPE = 'Server'
     12 
     13 DOC = """
     14 Tests whether a Brillo device can recover a image using fastboot.
     15 """
     16 
     17 TEST_ARG_NAMES = ('image_file', 'partition', 'device')
     18 args_dict = utils.args_to_dict(args)
     19 
     20 
     21 def run(machine):
     22     test_args = {name: args_dict[name] for name in TEST_ARG_NAMES
     23                  if name in args_dict}
     24     job.run_test('brillo_RecoverFromBadImage', host=hosts.create_host(machine),
     25                  **test_args)
     26 
     27 
     28 parallel_simple(run, machines)
     29