1# Copyright (c) 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 5from autotest_lib.server import utils 6 7AUTHOR = 'harpreet' 8TIME = 'SHORT' 9NAME = 'cellular_ChromeEndToEnd.ethernetPreferred' 10TEST_TYPE = 'Server' 11ATTRIBUTES = ('suite:network3g_att, suite:network3g_tmobile,' 12 'suite:network3g_verizon, suite:network3g') 13SUITE = 'network3g_att, network3g_tmobile, network3g_verizon, network3g' 14DEPENDENCIES = 'servo' 15 16DOC = """ 17Tests that the device prefers ethernet over cellular network. 18""" 19 20args_dict = utils.args_to_dict(args) 21servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 22 23def run(machine): 24 host = hosts.create_host(machine, servo_args=servo_args) 25 job.run_test('cellular_ChromeEndToEnd', 26 host=host, 27 raw_cmdline_args=args, 28 test='ethernetPreferred') 29 30parallel_simple(run, machines) 31