1 # Copyright 2017 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 5 from autotest_lib.server import utils 6 7 8 AUTHOR = 'rjahagir' 9 NAME = 'bluetooth_AdapterReboot.stress_100' 10 PURPOSE = 'Test bluetooth adapter state with rebooting the DUT.' 11 CRITERIA = 'Adapter should power on or off with correct parameters.' 12 ATTRIBUTES = 'suite:bluetooth, suite:bluetooth_stress' 13 TIME = 'LONG' # This takes about 2 hours on cyan. 14 TEST_CATEGORY = 'Functional' 15 TEST_CLASS = 'bluetooth' 16 TEST_TYPE = 'server' 17 DEPENDENCIES = 'bluetooth' 18 19 DOC = """ 20 This test case verifies that the Bluetooth adapter of the DUT can 21 behave normally when subjected to rebooting the DUT. 22 """ 23 24 args_dict = utils.args_to_dict(args) 25 26 def run(machine): 27 host = hosts.create_host(machine) 28 job.run_test('bluetooth_AdapterReboot', host=host, num_iterations=100) 29 30 parallel_simple(run, machines) 31