• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2018 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
5AUTHOR = 'timkovich'
6TIME = 'SHORT'
7NAME = 'policy_WiFiAutoconnectServer.false'
8TEST_TYPE = 'Server'
9ATTRIBUTES = 'suite:ent-wificell'
10DEPENDENCIES = 'wificell'
11
12DOC = """
13'policy_WiFiAutoconnectServer' test configures an AP and runs the client
14side 'policy_WiFiAutoconnect' test which uses the AP to test network
15autoconnect policies with autoconnect set to False.
16
17"""
18
19
20from autotest_lib.server.cros.network import hostap_config
21
22
23def run(machine):
24    channel = 6
25    n_mode = hostap_config.HostapConfig.MODE_11N_MIXED
26    ap_config = hostap_config.HostapConfig(channel=channel, mode=n_mode)
27
28    host = hosts.create_host(machine)
29    job.run_test('policy_WiFiAutoconnectServer',
30                 raw_cmdline_args=args,
31                 autoconnect=False,
32                 additional_params=ap_config,
33                 host=host)
34
35
36parallel_simple(run, machines)
37