diff mbox

Increase waiting time before first session check in kvm_test_utils.reboot

Message ID 1259216787-27629-1-git-send-email-kcao@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Cao, Chen Nov. 26, 2009, 6:26 a.m. UTC
None
diff mbox

Patch

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