| Index: client/tests/kvm/tests/timedrift_with_reboot.py
|
| diff --git a/client/tests/kvm/tests/timedrift_with_reboot.py b/client/tests/kvm/tests/timedrift_with_reboot.py
|
| index 05ef21f6b31ae33e8e0ac41829fe7ea59c806fb9..256216330f8bf15611e400e8d64c01708532c7a7 100644
|
| --- a/client/tests/kvm/tests/timedrift_with_reboot.py
|
| +++ b/client/tests/kvm/tests/timedrift_with_reboot.py
|
| @@ -1,6 +1,6 @@
|
| import logging
|
| from autotest_lib.client.common_lib import error
|
| -import kvm_test_utils
|
| +from autotest_lib.client.virt import virt_test_utils
|
|
|
|
|
| def run_timedrift_with_reboot(test, params, env):
|
| @@ -36,20 +36,20 @@ def run_timedrift_with_reboot(test, params, env):
|
| try:
|
| # Get initial time
|
| # (ht stands for host time, gt stands for guest time)
|
| - (ht0, gt0) = kvm_test_utils.get_time(session, time_command,
|
| + (ht0, gt0) = virt_test_utils.get_time(session, time_command,
|
| time_filter_re, time_format)
|
|
|
| # Reboot
|
| for i in range(reboot_iterations):
|
| # Get time before current iteration
|
| - (ht0_, gt0_) = kvm_test_utils.get_time(session, time_command,
|
| + (ht0_, gt0_) = virt_test_utils.get_time(session, time_command,
|
| time_filter_re, time_format)
|
| # Run current iteration
|
| logging.info("Rebooting: iteration %d of %d...",
|
| (i + 1), reboot_iterations)
|
| session = vm.reboot(session)
|
| # Get time after current iteration
|
| - (ht1_, gt1_) = kvm_test_utils.get_time(session, time_command,
|
| + (ht1_, gt1_) = virt_test_utils.get_time(session, time_command,
|
| time_filter_re, time_format)
|
| # Report iteration results
|
| host_delta = ht1_ - ht0_
|
| @@ -67,7 +67,7 @@ def run_timedrift_with_reboot(test, params, env):
|
| "%.2f seconds" % (i + 1, drift))
|
|
|
| # Get final time
|
| - (ht1, gt1) = kvm_test_utils.get_time(session, time_command,
|
| + (ht1, gt1) = virt_test_utils.get_time(session, time_command,
|
| time_filter_re, time_format)
|
|
|
| finally:
|
|
|