• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2017 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
7
8AUTHOR = 'rjahagir'
9NAME = 'bluetooth_AdapterReboot'
10PURPOSE = 'Test bluetooth adapter state with rebooting the DUT.'
11CRITERIA = 'Adapter should power on or off with correct parameters.'
12ATTRIBUTES = 'suite:bluetooth, suite:bluetooth_sanity'
13TIME = 'SHORT' # This takes about 5 minutes on cyan.
14TEST_CATEGORY = 'Functional'
15TEST_CLASS = 'bluetooth'
16TEST_TYPE = 'server'
17DEPENDENCIES = 'bluetooth'
18
19DOC = """
20This test case verifies that the Bluetooth adapter of the DUT can
21behave normally when subjected to rebooting the DUT.
22"""
23
24args_dict = utils.args_to_dict(args)
25
26def run(machine):
27    host = hosts.create_host(machine)
28    job.run_test('bluetooth_AdapterReboot', host=host)
29
30parallel_simple(run, machines)
31