From patchwork Thu Jun 18 21:51:00 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Huff X-Patchwork-Id: 31257 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 n5ILpi8x025069 for ; Thu, 18 Jun 2009 21:51:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753955AbZFRVvj (ORCPT ); Thu, 18 Jun 2009 17:51:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753905AbZFRVvj (ORCPT ); Thu, 18 Jun 2009 17:51:39 -0400 Received: from mx2.redhat.com ([66.187.237.31]:59642 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753734AbZFRVvd (ORCPT ); Thu, 18 Jun 2009 17:51:33 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n5ILpaDu026022 for ; Thu, 18 Jun 2009 17:51:36 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n5ILpZg6000903; Thu, 18 Jun 2009 17:51:35 -0400 Received: from localhost.localdomain (dhcp231-89.rdu.redhat.com [10.11.231.89]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n5ILpXd9018970; Thu, 18 Jun 2009 17:51:35 -0400 From: David Huff To: kvm@vger.kernel.org Cc: David Huff Subject: [PATCH] Modified boot test in kvm_test.py Date: Thu, 18 Jun 2009 17:51:00 -0400 Message-Id: <1245361860-26726-6-git-send-email-dhuff@redhat.com> In-Reply-To: <1245361860-26726-1-git-send-email-dhuff@redhat.com> References: <1245361860-26726-1-git-send-email-dhuff@redhat.com> X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org This is a stopgap to test unattended installs. We will write a new seprate test for unattended installs --- client/tests/kvm/kvm_tests.py | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/client/tests/kvm/kvm_tests.py b/client/tests/kvm/kvm_tests.py index 54d2a7a..29901f3 100644 --- a/client/tests/kvm/kvm_tests.py +++ b/client/tests/kvm/kvm_tests.py @@ -29,7 +29,18 @@ def run_boot(test, params, env): logging.info("Waiting for guest to be up...") - session = kvm_utils.wait_for(vm.ssh_login, 240, 0, 2) + first = 0 + timeout = 240 + message = "" + + # todo we will break out this in to new test type unattended test however for + # development purposes quick and dirty way to get an unattended install started + if "unattended_install" in params.get("shortname"): + first = 800 + timeout = 3000 + message = "waiting for guest to install" + + session = kvm_utils.wait_for(vm.ssh_login, timeout, first, 2 ,message) if not session: raise error.TestFail("Could not log into guest")