From patchwork Thu Nov 26 06:26:27 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Cao, Chen" X-Patchwork-Id: 63064 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nAQ6MDm3031756 for ; Thu, 26 Nov 2009 06:22:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755009AbZKZGWE (ORCPT ); Thu, 26 Nov 2009 01:22:04 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754972AbZKZGWE (ORCPT ); Thu, 26 Nov 2009 01:22:04 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41869 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754655AbZKZGWD (ORCPT ); Thu, 26 Nov 2009 01:22:03 -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 nAQ6M8CW015777 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 26 Nov 2009 01:22:08 -0500 Received: from localhost.localdomain (dhcp-66-70-2.nay.redhat.com [10.66.70.2]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nAQ6M4K9018337; Thu, 26 Nov 2009 01:22:05 -0500 From: "Cao, Chen" To: lmr@redhat.com Cc: autotest@test.kernel.org, kvm@vger.kernel.org, "Cao, Chen" Subject: [PATCH] Increase waiting time before first session check in kvm_test_utils.reboot Date: Thu, 26 Nov 2009 14:26:27 +0800 Message-Id: <1259216787-27629-1-git-send-email-kcao@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/kvm_test_utils.py b/client/tests/kvm/kvm_test_utils.py index bf8aed2..e183dc6 100644 --- a/client/tests/kvm/kvm_test_utils.py +++ b/client/tests/kvm/kvm_test_utils.py @@ -91,7 +91,7 @@ def reboot(vm, session, method="shell", sleep_before_reset=10, nic_index=0, logging.error("Unknown reboot method: %s" % method) # Wait for the session to become unresponsive and close it - if not kvm_utils.wait_for(lambda: not session.is_responsive(), 120, 0, 1): + if not kvm_utils.wait_for(lambda: not session.is_responsive(), 120, 10, 2): raise error.TestFail("Guest refuses to go down") session.close()