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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/samples/rpm_kernel ('k') | client/samples/test_add_kernel » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/samples/soft_reboot
diff --git a/client/samples/soft_reboot b/client/samples/soft_reboot
deleted file mode 100644
index c5d67274f7a93282b64a4d70a13ebd81898f7dd1..0000000000000000000000000000000000000000
--- a/client/samples/soft_reboot
+++ /dev/null
@@ -1,24 +0,0 @@
-TIME = 'MEDIUM'
-DOC = """\
-This test will reboot the machine ITERATIONS number of times. Note that if you
-use this, you'll need to use the step engine for any tests that occur after
-this one. This means that this may not play well when run from the autotest
-front end."""
-
-
-ITERATIONS = 5
-
-tries = job.get_state('soft_reboot_tries', 0) + 1
-job.set_state("soft_reboot_tries", tries)
-
-if tries < ITERATIONS:
- import sys
- this_functions_name = sys._getframe().f_code.co_name
- if this_functions_name != "?":
- # If we're not in a function (i.e. we get "?") then we're
- # not using the step engine and thus no next step is
- # necessary
- job.next_step_prepend(this_functions_name)
-
-if tries <= ITERATIONS:
- job.reboot()
« 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