* [Autotest] [PATCH]: watchdog test extension
@ 2011-09-29 7:56 Pradeep Kumar
0 siblings, 0 replies; only message in thread
From: Pradeep Kumar @ 2011-09-29 7:56 UTC (permalink / raw)
To: KVM, Lucas Meneghel Rodrigues; +Cc: Pradeep Kumar
>From b7fc8b21fb3cdd9fefffd05d12dabfd055032f8f Mon Sep 17 00:00:00 2001
From: pradeep <you@example.com>
Date: Thu, 29 Sep 2011 11:22:32 +0530
Subject: [PATCH] [KVM][Autotest]: watchdog test extension
Signed-off-by: Pradeep K Surisetty <psuriset@linux.vnet.ibm.com>
modified: client/tests/kvm/subtests.cfg.sample
modified: client/virt/tests/watchdog.py
---
client/tests/kvm/subtests.cfg.sample | 2 ++
client/virt/tests/watchdog.py | 6 +++---
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/client/tests/kvm/subtests.cfg.sample b/client/tests/kvm/subtests.cfg.sample
index e4f6718..79a6d8b 100644
--- a/client/tests/kvm/subtests.cfg.sample
+++ b/client/tests/kvm/subtests.cfg.sample
@@ -363,6 +363,8 @@ variants:
only RHEL.5, RHEL.6
type = watchdog
extra_params += " -watchdog i6300esb -watchdog-action reset"
+ #watchdog device: i6300esb|ib700
+ #watchdog-actions: reset|shutdown|poweroff|pause|debug
relogin_timeout = 240
- smbios_table: install setup image_copy unattended_install.cdrom
diff --git a/client/virt/tests/watchdog.py b/client/virt/tests/watchdog.py
index 446f250..2a19c7b 100644
--- a/client/virt/tests/watchdog.py
+++ b/client/virt/tests/watchdog.py
@@ -17,10 +17,10 @@ def run_watchdog(test, params, env):
relogin_timeout = int(params.get("relogin_timeout", 240))
watchdog_enable_cmd = "chkconfig watchdog on && service watchdog start"
- def watchdog_action_reset():
+ def watchdog_action():
"""
Trigger a crash dump through sysrq-trigger
- Ensure watchdog_action(reset) occur.
+ Ensure watchdog_action occur.
"""
session = vm.wait_for_login(timeout=timeout)
@@ -37,7 +37,7 @@ def run_watchdog(test, params, env):
logging.info("Enabling watchdog service...")
session.cmd(watchdog_enable_cmd, timeout=320)
- watchdog_action_reset()
+ watchdog_action()
# Close stablished session
session.close()
--
1.7.0.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-09-29 7:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-29 7:56 [Autotest] [PATCH]: watchdog test extension Pradeep Kumar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).