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_AdapterAdvMonitor' 9PURPOSE = ('batch of Bluetooth Advertisement Monitor tests') 10CRITERIA = 'All tests should pass' 11TIME = 'LONG' # ~10 minutes 12TEST_CATEGORY = 'Functional' 13ATTRIBUTES = 'suite:bluetooth_qualification' 14TEST_CLASS = 'bluetooth' 15TEST_TYPE = 'server' 16DEPENDENCIES = 'bluetooth, working_bluetooth_btpeer:2' 17PY_VERSION = 3 18 19DOC = """ 20 A Batch of Bluetooth Advertisement Monitor API tests. This test is written 21 as a batch of tests in order to reduce test time, since auto-test ramp up 22 time is costly. The batch is using BluetoothAdapterQuickTests wrapper 23 methods to start and end a test and a batch of tests. 24 25 This class can be called to run the entire test batch or to run a specific 26 test only. More information about the tests can be found here: 27 go/bt-advmon-api-test-plan 28 29 """ 30 31args_dict = utils.args_to_dict(args) 32 33def run(machine): 34 host = hosts.create_host(machine) 35 job.run_test('bluetooth_AdapterAdvMonitor', 36 host=host, 37 num_iterations=1, 38 args_dict=args_dict) 39 40parallel_simple(run, machines) 41