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' 19 20DOC = """ 21Checks the Bluetooth ID of the system. If the ID is not "00E0:24..:0400" the 22test will fail. It does not check the platform-specific number in the ID. 23 24A platform should not FSI without an assigned Bluetooth ID from Google. 25""" 26 27args_dict = utils.args_to_dict(args) 28 29def run(machine): 30 host = hosts.create_host(machine) 31 job.run_test('bluetooth_AdapterSAHealth', host=host, 32 num_iterations=1, test_name=NAME.split('.')[1]) 33 34parallel_simple(run, machines) 35