OLD | NEW |
| (Empty) |
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 | |
5 AUTHOR = "Chrome OS Team" | |
6 NAME = "Factory Reboot" | |
7 TIME = "Medium" | |
8 TEST_CATEGORY = "Functional" | |
9 TEST_CLASS = "suite" | |
10 TEST_TYPE = "client" | |
11 | |
12 DOC = """ | |
13 This test suite runs automated client-side reboot tests. | |
14 """ | |
15 | |
16 | |
17 # Hack to work around autotest's obsession with GRUB. | |
18 def do_nothing(tag): | |
19 pass | |
20 job.bootloader.set_default = do_nothing | |
21 job.bootloader.boot_once = do_nothing | |
22 | |
23 | |
24 # This is where we start. | |
25 def step_init(): | |
26 step_reboot_test(1) | |
27 | |
28 | |
29 # Do longer runin tests. | |
30 def step_reboot_test(i): | |
31 if i < 5: | |
32 job.next_step([step_reboot_test, i + 1]) | |
33 | |
34 job.reboot() | |
35 | |
OLD | NEW |