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