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

Unified Diff: server/site_tests/platform_KernelErrorPaths/platform_KernelErrorPaths.py

Issue 6634003: This change fixes the platform_KernelErrorCodePaths test so that it (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: Created 9 years, 9 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: server/site_tests/platform_KernelErrorPaths/platform_KernelErrorPaths.py
diff --git a/server/site_tests/platform_KernelErrorPaths/platform_KernelErrorPaths.py b/server/site_tests/platform_KernelErrorPaths/platform_KernelErrorPaths.py
index 423cfaa5dbe6c98a774096de926be5699d54f8ce..e16bc62a8b982786eaf97eb317ba7cc6f9b0686a 100644
--- a/server/site_tests/platform_KernelErrorPaths/platform_KernelErrorPaths.py
+++ b/server/site_tests/platform_KernelErrorPaths/platform_KernelErrorPaths.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -12,6 +12,18 @@ class platform_KernelErrorPaths(test.test):
version = 1
def breakme(self, text):
+ # This test is ensuring that the machine will reboot on any
+ # tyoe of kernel panic. If the sysctls below are not set
+ # correctly, the machine will not reboot. After verifying
+ # that the machine has the proper sysctl state, we make it
+ # reboot by writing to a /proc/breakme.
+ #
+ # 2011.03.09: ARM machines will currently fail due to
+ # 'preserved RAM' not being enabled.
+ self.client.run('sysctl kernel.panic|grep "kernel.panic = -1"');
+ self.client.run('sysctl kernel.panic_on_oops|'
+ 'grep kernel.panic_on_oops = 1');
+
command = "echo %s > /proc/breakme" % text
logging.info("KernelErrorPaths: executing '%s' on %s" %
(command, self.client.hostname))
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698