Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(983)

Side by Side Diff: client/samples/soft_reboot

Issue 4823005: Merge remote branch 'cros/upstream' into tempbranch (Closed) Base URL: http://git.chromium.org/git/autotest.git@master
Patch Set: patch Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « client/samples/rpm_kernel ('k') | client/samples/test_add_kernel » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 TIME = 'MEDIUM'
2 DOC = """\
3 This test will reboot the machine ITERATIONS number of times. Note that if you
4 use this, you'll need to use the step engine for any tests that occur after
5 this one. This means that this may not play well when run from the autotest
6 front end."""
7
8
9 ITERATIONS = 5
10
11 tries = job.get_state('soft_reboot_tries', 0) + 1
12 job.set_state("soft_reboot_tries", tries)
13
14 if tries < ITERATIONS:
15 import sys
16 this_functions_name = sys._getframe().f_code.co_name
17 if this_functions_name != "?":
18 # If we're not in a function (i.e. we get "?") then we're
19 # not using the step engine and thus no next step is
20 # necessary
21 job.next_step_prepend(this_functions_name)
22
23 if tries <= ITERATIONS:
24 job.reboot()
OLDNEW
« no previous file with comments | « client/samples/rpm_kernel ('k') | client/samples/test_add_kernel » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698