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_AdapterSASanity.sa_valid_id_test' 10PURPOSE = 'Check whether the chromebook is using a Google Bluetooth ID.' 11CRITERIA = """ 12This test will fail if the Bluetooth ID does not match the expected format. 13""" 14ATTRIBUTES = 'suite:bvt-perbuild, suite:bluetooth_flaky' 15TIME = 'SHORT' 16TEST_CATEGORY = 'Functional' 17TEST_CLASS = 'bluetooth' 18TEST_TYPE = 'server' 19DEPENDENCIES = 'bluetooth' 20 21DOC = """ 22Checks the Bluetooth ID of the system. If the ID is not "00E0:24..:0400" the 23test will fail. It does not check the platform-specific number in the ID. 24 25A platform should not FSI without an assigned Bluetooth ID from Google. 26""" 27 28args_dict = utils.args_to_dict(args) 29 30def run(machine): 31 host = hosts.create_host(machine) 32 job.run_test('bluetooth_AdapterSASanity', host=host, 33 num_iterations=1, test_name=NAME.split('.')[1]) 34 35parallel_simple(run, machines) 36