| OLD | NEW |
| 1 import logging, time | 1 import logging, time |
| 2 | 2 |
| 3 | 3 |
| 4 def internal_yum_update(session, command, prompt, timeout): | 4 def internal_yum_update(session, command, prompt, timeout): |
| 5 """ | 5 """ |
| 6 Helper function to perform the yum update test. | 6 Helper function to perform the yum update test. |
| 7 | 7 |
| 8 @param session: shell session stablished to the host | 8 @param session: shell session stablished to the host |
| 9 @param command: Command to be sent to the shell session | 9 @param command: Command to be sent to the shell session |
| 10 @param prompt: Machine prompt | 10 @param prompt: Machine prompt |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 vm = env.get_vm(params["main_vm"]) | 40 vm = env.get_vm(params["main_vm"]) |
| 41 vm.verify_alive() | 41 vm.verify_alive() |
| 42 timeout = int(params.get("login_timeout", 360)) | 42 timeout = int(params.get("login_timeout", 360)) |
| 43 session = vm.wait_for_login(timeout=timeout) | 43 session = vm.wait_for_login(timeout=timeout) |
| 44 | 44 |
| 45 internal_yum_update(session, "yum update", params.get("shell_prompt"), 600) | 45 internal_yum_update(session, "yum update", params.get("shell_prompt"), 600) |
| 46 internal_yum_update(session, "yum update kernel", | 46 internal_yum_update(session, "yum update kernel", |
| 47 params.get("shell_prompt"), 600) | 47 params.get("shell_prompt"), 600) |
| 48 | 48 |
| 49 session.close() | 49 session.close() |
| OLD | NEW |