• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2020 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 = 'chromeos-bluetooth'
8NAME = 'bluetooth_AdapterSAHealth.sa_adapter_reboot_test'
9PURPOSE = ('Reboot device and ensure Bluetooth adapter is up')
10CRITERIA = 'Pass all health test'
11# TODO(b/173146480) re-enable this test once BT state persists properly around
12# reboots
13ATTRIBUTES = ''
14TIME = 'MEDIUM'
15TEST_CATEGORY = 'Functional'
16TEST_CLASS = 'bluetooth'
17TEST_TYPE = 'server'
18DEPENDENCIES = 'bluetooth'
19
20DOC = """Server side bluetooth adapter stress tests involving reboot.
21    First we test powering on the adapter, reboot the DUT, and make sure
22    the adapter is still powered on and in a working state.
23
24    Next we test powering off the adapter, reboot, and verify the adapter
25    is still powered off.
26    """
27
28args_dict = utils.args_to_dict(args)
29
30def run(machine):
31    host = hosts.create_host(machine)
32    job.run_test('bluetooth_AdapterSAHealth', host=host,
33                  num_iterations=1, test_name=NAME.split('.')[1])
34
35parallel_simple(run, machines)
36