Currently we reboot with default login_timeout in
migration testing, case might fail to login.
This patch passes user assigned login_timeout for
vm.reboot()

Signed-off-by: Amos Kong <[email protected]>
---
 .../tests/virt/kvm/tests/migration_with_reboot.py  |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/client/tests/virt/kvm/tests/migration_with_reboot.py 
b/client/tests/virt/kvm/tests/migration_with_reboot.py
index 040d7d2..0b2b841 100644
--- a/client/tests/virt/kvm/tests/migration_with_reboot.py
+++ b/client/tests/virt/kvm/tests/migration_with_reboot.py
@@ -27,7 +27,8 @@ def run_migration_with_reboot(test, params, env):
 
     try:
         # Reboot the VM in the background
-        bg = utils.InterruptedThread(vm.reboot, (session,))
+        bg = utils.InterruptedThread(vm.reboot, kwargs={'session' : session,
+                                     'timeout' : login_timeout})
         bg.start()
         try:
             while bg.isAlive():
-- 
1.7.1

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to