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_AdapterAdvHealth.adv_suspend_peer_test' 9PURPOSE = ('Tests advertising during suspend/resume') 10CRITERIA = 'Advertising should not be detected during suspend' 11ATTRIBUTES = 'suite:bluetooth_flaky' 12TIME = 'SHORT' # ~3 minutes on Sarien 13TEST_CATEGORY = 'Functional' 14TEST_CLASS = 'bluetooth' 15TEST_TYPE = 'server' 16DEPENDENCIES = 'bluetooth, working_bluetooth_btpeer:1' 17 18DOC = """ 19 Advertising suspend peer test. 20 21 This test configures and enables multiple advertising instances on the DUT, 22 and then confirms that they are discoverable normally, but not discoverable 23 once the system enters suspend 24 """ 25 26args_dict = utils.args_to_dict(args) 27 28def run(machine): 29 host = hosts.create_host(machine) 30 job.run_test('bluetooth_AdapterAdvHealth', host=host, num_iterations=1, 31 args_dict=args_dict, test_name=NAME.split('.')[1]) 32 33parallel_simple(run, machines)