blob: 01078c0c73c2302355d99a5c8965dda72f34d8f7 [file] [log] [blame]
# Copyright 2019 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This class implements a Bluetooth quick health package, using
# methods provided in BluetoothAdapterQuickTests,
# The package is running several sub batches of tests.
# A batch is defined as a set of tests, preferably with a common subject, e.g
# 'LE Health' batch.
# The quick health test pacakge is imporving test time by doing the minimal
# cleanups between each test and test batches, saving the auto-test ramp up
# time of about 90-120 second per test.
#
# Purpose: Package of Bluetooth quick health tests
# Deprecated variables:
# TIME = 'MEDIUM' # Takes 10 minutes on Guado
# TEST_CATEGORY = 'Functional'
from autotest_lib.server import utils
NAME = 'bluetooth_AdapterQuickHealth'
METADATA = {
'contacts': ['chromeos-bt-team@google.com'],
# ChromeOS > Platform > Connectivity > Bluetooth
'bug_component': 'b:167317',
'criteria': 'Pass all health test',
'hw_agnostic': False,
'life_cycle_stage': 'owner_monitored',
}
ATTRIBUTES = ''
TEST_TYPE = 'server'
DEPENDENCIES = 'bluetooth_state:NORMAL, working_bluetooth_btpeer:2'
args_dict = utils.args_to_dict(args)
def run(machine):
host = hosts.create_host(machine)
job.run_test('bluetooth_AdapterQuickHealth', host=host,
num_iterations=1, args_dict=args_dict,
flag='Quick Health')
parallel_simple(run, machines)