From: Subrata Modak Subject: Re: [Autotest] [PATCH] KVM test: guest_s4 subtest - Expose timeout on config Date: Thu, 06 May 2010 11:13:49 +0530 Message-ID: <1273124630.4898.0.camel@subratamodak.linux.ibm.com> References: <1273122859-19797-1-git-send-email-lmr@redhat.com> Reply-To: subrata@linux.vnet.ibm.com Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: autotest@test.kernel.org, kvm@vger.kernel.org To: Lucas Meneghel Rodrigues Return-path: Received: from e7.ny.us.ibm.com ([32.97.182.137]:36257 "EHLO e7.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750995Ab0EFFoC (ORCPT ); Thu, 6 May 2010 01:44:02 -0400 Received: from d01relay06.pok.ibm.com (d01relay06.pok.ibm.com [9.56.227.116]) by e7.ny.us.ibm.com (8.14.3/8.13.1) with ESMTP id o465XqrJ032053 for ; Thu, 6 May 2010 01:33:52 -0400 Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay06.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o465hxf61536098 for ; Thu, 6 May 2010 01:43:59 -0400 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id o465hw0J008112 for ; Thu, 6 May 2010 02:43:59 -0300 In-Reply-To: <1273122859-19797-1-git-send-email-lmr@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, 2010-05-06 at 02:14 -0300, Lucas Meneghel Rodrigues wrote: > After the test guest_s4 hibernates the VM, we try to > loging on it. Let's make the login timeout configurable > on the configuration file, since different systems > might need more time to recover. Also, increasing the > default timeout from 120s to 240s. > > Signed-off-by: Lucas Meneghel Rodrigues Thanks Lucas. I will try to test my F13 system again with this patch where i was getting consistent failure for guest_s4. Regards-- Subrata > --- > client/tests/kvm/tests/guest_s4.py | 5 +++-- > client/tests/kvm/tests_base.cfg.sample | 1 + > 2 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/client/tests/kvm/tests/guest_s4.py b/client/tests/kvm/tests/guest_s4.py > index a289148..88b2b7c 100644 > --- a/client/tests/kvm/tests/guest_s4.py > +++ b/client/tests/kvm/tests/guest_s4.py > @@ -58,8 +58,9 @@ def run_guest_s4(test, params, env): > raise error.TestError("Failed to start VM after suspend to disk") > > # Log into the resumed VM > - logging.info("Logging into resumed VM...") > - session2 = kvm_utils.wait_for(vm.remote_login, 120, 0, 2) > + relogin_timeout = int(params.get("relogin_timeout", 240)) > + logging.info("Logging into resumed VM, timeout %s", relogin_timeout) > + session2 = kvm_utils.wait_for(vm.remote_login, relogin_timeout, 0, 2) > if not session2: > raise error.TestFail("Could not log into VM after resuming from " > "suspend to disk") > diff --git a/client/tests/kvm/tests_base.cfg.sample b/client/tests/kvm/tests_base.cfg.sample > index ee83ac2..21ffa56 100644 > --- a/client/tests/kvm/tests_base.cfg.sample > +++ b/client/tests/kvm/tests_base.cfg.sample > @@ -227,6 +227,7 @@ variants: > set_s4_cmd = echo disk > /sys/power/state > kill_test_s4_cmd = pkill tcpdump > services_up_timeout = 30 > + relogin_timeout = 240 > > - nic_hotplug: install setup unattended_install > type = pci_hotplug