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' 11DEPENDENCIES = 'servo_state:WORKING' 12 13DOC = """ 14Tests that the device prefers ethernet over cellular network. 15""" 16 17args_dict = utils.args_to_dict(args) 18servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 19 20def run(machine): 21 host = hosts.create_host(machine, servo_args=servo_args) 22 job.run_test('cellular_ChromeEndToEnd', 23 host=host, 24 raw_cmdline_args=args, 25 test='ethernetPreferred') 26 27parallel_simple(run, machines) 28