From patchwork Tue Jan 5 08:31:56 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yolkfull Chow X-Patchwork-Id: 70946 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o058W4U7016070 for ; Tue, 5 Jan 2010 08:32:19 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753269Ab0AEIcF (ORCPT ); Tue, 5 Jan 2010 03:32:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751367Ab0AEIcE (ORCPT ); Tue, 5 Jan 2010 03:32:04 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48937 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752434Ab0AEIcB (ORCPT ); Tue, 5 Jan 2010 03:32:01 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o058W0tC016546 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 5 Jan 2010 03:32:01 -0500 Received: from localhost.localdomain (dhcp-65-181.nay.redhat.com [10.66.65.181]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o058Vunh003871; Tue, 5 Jan 2010 03:31:59 -0500 From: Yolkfull Chow To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Yolkfull Chow Subject: [Autotest PATCH 2/2] KVM-test: guest_s4 subtest: Tune up timeout value for `set_s4_cmd' command Date: Tue, 5 Jan 2010 16:31:56 +0800 Message-Id: <1262680316-32500-2-git-send-email-yzhou@redhat.com> In-Reply-To: <1262680316-32500-1-git-send-email-yzhou@redhat.com> References: <1262680316-32500-1-git-send-email-yzhou@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/client/tests/kvm/tests/guest_s4.py b/client/tests/kvm/tests/guest_s4.py index f08b9d2..82572f6 100644 --- a/client/tests/kvm/tests/guest_s4.py +++ b/client/tests/kvm/tests/guest_s4.py @@ -45,7 +45,8 @@ def run_guest_s4(test, params, env): session2.sendline(params.get("set_s4_cmd")) # Make sure the VM goes down - if not kvm_utils.wait_for(vm.is_dead, 240, 2, 2): + suspend_timeout = 240 + int(params.get("smp")) * 60 + if not kvm_utils.wait_for(vm.is_dead, suspend_timeout, 2, 2): raise error.TestFail("VM refuses to go down. Suspend failed.") logging.info("VM suspended successfully. Sleeping for a while before " "resuming it.")