Signed-off-by: Chen Cao <[email protected]>
---
 client/tests/kvm/tests/autoit.py       |    4 +++-
 client/tests/kvm/tests_base.cfg.sample |    1 +
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/client/tests/kvm/tests/autoit.py b/client/tests/kvm/tests/autoit.py
index e7e0271..9be1abe 100644
--- a/client/tests/kvm/tests/autoit.py
+++ b/client/tests/kvm/tests/autoit.py
@@ -16,8 +16,10 @@ def run_autoit(test, params, env):
     @param params: Dictionary with test parameters.
     @param env: Dictionary with the test environment.
     """
+    login_timeout = int(params.get("login_timeout", 360))
+
     vm = kvm_test_utils.get_living_vm(env, params.get("main_vm"))
-    session = kvm_test_utils.wait_for_login(vm)
+    session = kvm_test_utils.wait_for_login(vm, timeout=login_timeout)
 
     try:
         logging.info("Starting script...")
diff --git a/client/tests/kvm/tests_base.cfg.sample 
b/client/tests/kvm/tests_base.cfg.sample
index 5349034..7645ffc 100644
--- a/client/tests/kvm/tests_base.cfg.sample
+++ b/client/tests/kvm/tests_base.cfg.sample
@@ -204,6 +204,7 @@ variants:
 
     - autoit:       install setup unattended_install
         type = autoit
+        login_timeout = 360
         autoit_binary = D:\AutoIt3.exe
         autoit_script_timeout = 600
         autoit_script_params =

_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to