• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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
5AUTHOR = 'chromeos-bluetooth'
6NAME = 'bluetooth_AdapterCLHealth.cl_adapter_discoverable_test.floss'
7ATTRIBUTES = 'suite:bluetooth_floss'
8TIME = 'SHORT'
9TEST_CLASS = 'bluetooth'
10TEST_TYPE = 'Server'
11DEPENDENCIES = 'bluetooth, working_bluetooth_btpeer:1'
12PY_VERSION = 3
13
14DOC = """
15Verify that the device can be discovered from another Bluetooth device.
16
17This is a useful health check because it tests basic functionality of the
18radio and host subsystem.
19"""
20
21from autotest_lib.server import utils
22
23args_dict = utils.args_to_dict(args)
24
25def run(machine):
26    host = hosts.create_host(machine)
27    job.run_test('bluetooth_AdapterCLHealth', host=host,
28                 num_iterations=1, args_dict=args_dict,
29                 test_name=NAME.split('.')[1], floss=True)
30
31parallel_simple(run, machines)
32