1 # Copyright (c) 2013 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 5 import logging 6 from autotest_lib.server import utils 7 8 AUTHOR = "Chrome OS Team" 9 NAME = "bluetooth_RegressionServer" 10 TIME = "MEDIUM" 11 TEST_CATEGORY = "General" 12 TEST_CLASS = "bluetooth" 13 TEST_TYPE = "server" 14 15 DOC = """ 16 Server side of Bluetooth Semi-Automated Regression tests. 17 """ 18 19 args_dict = utils.args_to_dict(args) 20 21 def run_system_bluetooth_Regression(machine): 22 if 'device_addrs' in args_dict: 23 arg = args_dict.get('device_addrs') 24 device_addrs = arg.split(',') if arg != '' else [] 25 job.run_test('bluetooth_RegressionServer', client_ip=machine, 26 device_addrs=device_addrs) 27 else: 28 logging.info('Please provide Bluetooth device MAC addresses: ' 29 '"device_addrs=addr1,addr2,addr3"') 30 31 job.parallel_simple(run_system_bluetooth_Regression, machines) 32