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_AdapterSAHealth.sa_valid_id_test' 9PURPOSE = 'Check whether the chromebook is using a Google Bluetooth ID.' 10CRITERIA = """ 11This test will fail if the Bluetooth ID does not match the expected format. 12""" 13ATTRIBUTES = 'suite:bvt-perbuild, suite:bluetooth, suite:bluetooth_standalone' 14TIME = 'SHORT' 15TEST_CATEGORY = 'Functional' 16TEST_CLASS = 'bluetooth' 17TEST_TYPE = 'server' 18DEPENDENCIES = 'bluetooth' 19PY_VERSION = 3 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_AdapterSAHealth', host=host, 33 num_iterations=1, test_name=NAME.split('.')[1]) 34 35parallel_simple(run, machines) 36