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_alias_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 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_AdapterSASanity', host=host, 31 num_iterations=1, test_name=NAME.split('.')[1]) 32 33parallel_simple(run, machines) 34