blob: 8ba3e2744cb340345da67682e054cc88b8e2acf0 [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.
from autotest_lib.client.common_lib import error
from autotest_lib.server import test
class generic_RebootTest(test.test):
"""Reboot a device. Should be ran on ADBHosts only."""
version = 1
def run_once(self, host):
if not host.reboot():
raise error.TestFail('Host failed to reboot.')