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