| OLD | NEW |
| 1 import logging, time, random | 1 import logging, time, random |
| 2 | 2 |
| 3 | 3 |
| 4 def run_ioquit(test, params, env): | 4 def run_ioquit(test, params, env): |
| 5 """ | 5 """ |
| 6 Emulate the poweroff under IO workload(dd so far) using kill -9. | 6 Emulate the poweroff under IO workload(dd so far) using kill -9. |
| 7 | 7 |
| 8 @param test: Kvm test object | 8 @param test: Kvm test object |
| 9 @param params: Dictionary with the test parameters. | 9 @param params: Dictionary with the test parameters. |
| 10 @param env: Dictionary with test environment. | 10 @param env: Dictionary with test environment. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 session2.cmd(check_cmd, timeout=60) | 22 session2.cmd(check_cmd, timeout=60) |
| 23 | 23 |
| 24 logging.info("Sleep for a while") | 24 logging.info("Sleep for a while") |
| 25 time.sleep(random.randrange(30, 100)) | 25 time.sleep(random.randrange(30, 100)) |
| 26 session2.cmd(check_cmd, timeout=60) | 26 session2.cmd(check_cmd, timeout=60) |
| 27 logging.info("Kill the virtual machine") | 27 logging.info("Kill the virtual machine") |
| 28 vm.process.close() | 28 vm.process.close() |
| 29 finally: | 29 finally: |
| 30 session.close() | 30 session.close() |
| 31 session2.close() | 31 session2.close() |
| OLD | NEW |