blob: 8cf6e91a33052a0a6096bdc986475aface88c34b [file] [log] [blame]
# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
from autotest_lib.client.common_lib import error
from autotest_lib.server import autotest
from autotest_lib.server import hosts
from autotest_lib.server import test
class bluetooth_RegressionServer(test.test):
"""Server part of the Bluetooth Semi-Automatic Regression Tests."""
version = 1
def run_once(self, client_ip, device_addrs):
"""Run Server side of Bluetooth Regression tests.
@param client_ip: Device under test.
@param device_addrs: MAC addresses of Bluetooth devices under test.
if not client_ip:
raise error.TestError('Must provide client\'s IP address to test')
client = hosts.create_host(client_ip)
client_at = autotest.Autotest(client)'Running client side tests')
addrs=device_addrs, close_browser=False,
test_phase='reboot')'Starting reboot from Server')
client.reboot()'Returning to Client after reboot')
addrs=device_addrs, test_phase='client')