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 # Test expects to be run on a jailbroken device in developer mode. 6 7 from autotest_lib.server import utils 8 9 AUTHOR = "Chrome OS Team" 10 NAME = "network_StressServoEthernetPlug" 11 PURPOSE = "Servo based ChromeOS functional tests." 12 TIME = "LONG" 13 TEST_CATEGORY = "Functional" 14 TEST_CLASS = "network" 15 TEST_TYPE = "server" 16 17 DOC = """ 18 This test uses servo to repeatedly plug and unplug the ethernet device, 19 then validate appropriate behavior. 20 """ 21 22 args_dict = utils.args_to_dict(args) 23 servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 24 num_iterations = int(args_dict.get('num_iterations', 10000)) 25 26 def run(machine): 27 host = hosts.create_host(machine, servo_args=servo_args) 28 job.run_test("network_StressServoEthernetPlug", host=host, 29 disable_sysinfo=True, num_iterations=num_iterations) 30 31 parallel_simple(run, machines) 32