From patchwork Tue Jan 5 08:31:55 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yolkfull Chow X-Patchwork-Id: 70945 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 o058W4U6016070 for ; Tue, 5 Jan 2010 08:32:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751177Ab0AEIcA (ORCPT ); Tue, 5 Jan 2010 03:32:00 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752036Ab0AEIcA (ORCPT ); Tue, 5 Jan 2010 03:32:00 -0500 Received: from mx1.redhat.com ([209.132.183.28]:22070 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750910Ab0AEIb7 (ORCPT ); Tue, 5 Jan 2010 03:31:59 -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 o058VwuV027095 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 5 Jan 2010 03:31:58 -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 o058Vung003871; Tue, 5 Jan 2010 03:31:57 -0500 From: Yolkfull Chow To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Yolkfull Chow Subject: [Autotest PATCH 1/2] KVM-test: linux_s3 subtest: Tune up timeout for suspend command Date: Tue, 5 Jan 2010 16:31:55 +0800 Message-Id: <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/linux_s3.py b/client/tests/kvm/tests/linux_s3.py index 0292757..39f09e4 100644 --- a/client/tests/kvm/tests/linux_s3.py +++ b/client/tests/kvm/tests/linux_s3.py @@ -36,7 +36,8 @@ def run_linux_s3(test, params, env): logging.info("Putting VM into S3") command = "chvt %s && echo mem > /sys/power/state && chvt %s" % (dst_tty, src_tty) - status = session.get_command_status(command, timeout=120) + suspend_timeout = 120 + int(params.get("smp")) * 60 + status = session.get_command_status(command, timeout=suspend_timeout) if status != 0: raise error.TestFail("Suspend to mem failed")