[PATCH 4/6] Separate command execution of watchdog commands

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Lucas Meneghel Rodrigues <lmr@xxxxxxxxxx>
---
 client/virt/tests/watchdog.py |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/client/virt/tests/watchdog.py b/client/virt/tests/watchdog.py
index 446f250..603685f 100644
--- a/client/virt/tests/watchdog.py
+++ b/client/virt/tests/watchdog.py
@@ -15,7 +15,8 @@ def run_watchdog(test, params, env):
     timeout = int(params.get("login_timeout", 360))
     session = vm.wait_for_login(timeout=timeout)
     relogin_timeout = int(params.get("relogin_timeout", 240))
-    watchdog_enable_cmd = "chkconfig watchdog on && service watchdog start"
+    watchdog_enable_cmd = "chkconfig watchdog on"
+    watchdog_start_cmd = "service watchdog start"
 
     def watchdog_action_reset():
         """
@@ -35,8 +36,10 @@ def run_watchdog(test, params, env):
         logging.info("Waiting for kernel watchdog_action to take place")
         session = vm.wait_for_login(timeout=relogin_timeout)
 
-    logging.info("Enabling watchdog service...")
-    session.cmd(watchdog_enable_cmd, timeout=320)
+    error.context("Enabling watchdog service")
+    session.cmd(watchdog_enable_cmd)
+    error.context("Starting watchdog service")
+    session.cmd(watchdog_start_cmd, timeout=320)
     watchdog_action_reset()
 
     # Close stablished session
-- 
1.7.7

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux