From: Lucas Meneghel Rodrigues Subject: [PATCH 4/6] Separate command execution of watchdog commands Date: Fri, 4 Nov 2011 20:57:23 -0200 Message-ID: <1320447445-5804-5-git-send-email-lmr@redhat.com> References: <1320447445-5804-1-git-send-email-lmr@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: autotest@test.kernel.org Return-path: In-Reply-To: <1320447445-5804-1-git-send-email-lmr@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autotest-bounces@test.kernel.org Errors-To: autotest-bounces@test.kernel.org List-Id: kvm.vger.kernel.org Signed-off-by: Lucas Meneghel Rodrigues --- 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