: watchdog test extension
PATCH 1/1 : watchdog test extension
Quoted 1 line
From
b7fc8b21fb3cdd9fefffd05d12dabfd055032f8fMon Sep 17 00:00:00 2001
From: pradeep <[email protected]>
Date: Thu, 29 Sep 2011 11:22:32 +0530
Subject: [PATCH] [KVM][Autotest]: watchdog test extension
Signed-off-by Pradeep K Surisetty <[email protected]>
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(-)
client/tests/kvm/subtests.cfg.sample +2 -0
@@ -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
client/virt/tests/watchdog.py +3 -3
@@ -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()
Signature · 1 line
1.7.0.4