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_alias_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 Alias of the system. If the alias is not like 23'Chromebook_1234' (or Chromebox, etc.), the test will fail. 24""" 25 26args_dict = utils.args_to_dict(args) 27 28def run(machine): 29 host = hosts.create_host(machine) 30 job.run_test('bluetooth_AdapterSAHealth', host=host, 31 num_iterations=1, test_name=NAME.split('.')[1]) 32 33parallel_simple(run, machines) 34