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