• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 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.client.common_lib import utils
6
7AUTHOR = 'garnold'
8NAME = 'brillo_WifiInterfaceTest'
9TIME = 'SHORT'
10TEST_CATEGORY = 'Functional'
11TEST_TYPE = 'Server'
12ATTRIBUTES = 'suite:brillo-bvt'
13
14DOC = """
15Tests whether a Brillo device wifi interface is properly configured.
16"""
17
18TEST_ARG_NAMES = ('ssid', 'passphrase', 'wifi_iface', 'wifi_ssid')
19args_dict = utils.args_to_dict(args)
20
21def run(machine):
22    test_args = {name: args_dict[name] for name in TEST_ARG_NAMES
23                 if name in args_dict}
24    job.run_test('brillo_WifiInterfaceTest', host=hosts.create_host(machine),
25                 **test_args)
26
27
28parallel_simple(run, machines)
29