From mboxrd@z Thu Jan 1 00:00:00 1970 From: 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> References: <1245361860-26726-1-git-send-email-dhuff@redhat.com> Cc: David Huff To: kvm@vger.kernel.org Return-path: 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 In-Reply-To: <1245361860-26726-1-git-send-email-dhuff@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: 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") -- 1.6.0.6