• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Lint as: python2, python3
2# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6import logging
7from autotest_lib.server import test
8
9class platform_BootDevice(test.test):
10    version = 1
11
12    def run_once(self, reboot_iterations=1, host=None):
13        for i in range(reboot_iterations):
14            logging.info('======== Running BOOTDEVICE REBOOT ITERATION %d/%d '
15                         '========', i+1, reboot_iterations)
16            # Reboot the client
17            logging.info('BootDevice: reboot %s', host.hostname)
18            host.reboot()
19