diff mbox

Modified boot test in kvm_test.py

Message ID 1245361860-26726-6-git-send-email-dhuff@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

David Huff June 18, 2009, 9:51 p.m. UTC
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 mbox

Patch

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")