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 6from autotest_lib.server.cros.bluetooth import bluetooth_test 7 8AUTHOR = 'chromeos-bluetooth' 9NAME = 'bluetooth_AdapterLEBetterTogether.smart_unlock_test' 10PURPOSE = ('Better together smart unlock test') 11CRITERIA = 'Pass the test' 12ATTRIBUTES = 'suite:bluetooth_flaky' 13TIME = 'MEDIUM' 14TEST_CATEGORY = 'Functional' 15TEST_CLASS = 'bluetooth' 16TEST_TYPE = 'server' 17DEPENDENCIES = 'bluetooth, chameleon:bt_ble_hid' 18 19DOC = """ 20 The test is to verify the Bluetooth features used by Smat Unlock feature of 21 Better Together. It sends similar Bluetooth requests as the Smart Unlock 22 feature does and verifies that the Bluetooth stack can handle the requests in 23 a timely manner. 24 """ 25 26args_dict = utils.args_to_dict(args) 27chameleon_args = hosts.CrosHost.get_chameleon_arguments(args_dict) 28 29def run(machine): 30 host = hosts.create_host(machine, chameleon_args=chameleon_args) 31 job.run_test('bluetooth_AdapterLEBetterTogether', host=host, 32 num_iterations=1, test_name=NAME.split('.')[1]) 33 34parallel_simple(run, machines) 35