• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2010 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 test
7
8class platform_BootDevice(test.test):
9    version = 1
10
11    def run_once(self, reboot_iterations=1, host=None):
12        for i in xrange(reboot_iterations):
13            logging.info('======== Running BOOTDEVICE REBOOT ITERATION %d/%d '
14                         '========', i+1, reboot_iterations)
15            # Reboot the client
16            logging.info('BootDevice: reboot %s', host.hostname)
17            host.reboot()
18