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
5import logging
6from autotest_lib.server import utils
7
8AUTHOR = "Chrome OS Team"
9NAME = "bluetooth_RegressionServer"
10TIME = "MEDIUM"
11TEST_CATEGORY = "General"
12TEST_CLASS = "bluetooth"
13TEST_TYPE = "server"
14
15DOC = """
16Server side of Bluetooth Semi-Automated Regression tests.
17"""
18
19args_dict = utils.args_to_dict(args)
20
21def 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
31job.parallel_simple(run_system_bluetooth_Regression, machines)
32