KVM Test: time_drift_with_stop: Wait a few seconds after the continue
PATCH 1/1 KVM Test: time_drift_with_stop: Wait a few seconds after the continue
Except for kvm-clock, we need to wait a few seconds to let the interrupt lost during the stop to be reinjected. So sleep for 30 seconds ( could be configurated throug configuration file).
Signed-off-by Jason Wang <[email protected]>
Signed-off-by Amos Kong <[email protected]>
---
0 files changed, 0 insertions(+), 0 deletions(-)
client/tests/kvm/tests/timedrift_with_stop.py +5 -0
@@ -20,6 +20,7 @@ def run_timedrift_with_stop(test, params, env): @param env: Dictionary with the test environment. """ login_timeout = int(params.get("login_timeout", 360)) + sleep_time = int(params.get("sleep_time", 30)) vm = kvm_test_utils.get_living_vm(env, params.get("main_vm")) session = kvm_test_utils.wait_for_login(vm, timeout=login_timeout)
@@ -54,6 +55,10 @@ def run_timedrift_with_stop(test, params, env): time.sleep(stop_time) vm.monitor.cmd("cont") + # Sleep for a while to wait the interrupt to be reinjected + logging.info("Waiting for the interrupt to be reinjected ...") + time.sleep(sleep_time) + # Get time after current iteration (ht1_, gt1_) = kvm_test_utils.get_time(session, time_command, time_filter_re, time_format)