blob: cac3c702416b2fec31aade7f04154e13a6868c0c [file] [log] [blame]
# Copyright 2017 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.server import utils
AUTHOR = "mruthven"
NAME = "firmware_Cr50USB"
PURPOSE = "Verify Cr50 to AP USB connection"
TIME = "MEDIUM"
TEST_TYPE = "server"
DOC = """
This test runs 'usb_updater -f' many times to verify the cr50 to ap usb
connection is reliable.
"""
args_dict = utils.args_to_dict(args)
def run(machine):
host = hosts.create_host(machine)
num_iterations = int(args_dict.get("num_iterations", 100))
exit_condition = args_dict.get("exit_condition", "")
job.run_test("firmware_Cr50USB", host=host, num_iterations=num_iterations,
exit_condition=exit_condition)
parallel_simple(run, machines)