Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Unified Diff: client/tests/kvm/tests/timedrift_with_reboot.py

Issue 6883246: Merge autotest upstream from @5318 ~ @5336 (Closed) Base URL: ssh://gitrw.chromium.org:9222/autotest.git@master
Patch Set: patch Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/tests/kvm/tests/timedrift_with_migration.py ('k') | client/tests/kvm/tests/timedrift_with_stop.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
« no previous file with comments | « client/tests/kvm/tests/timedrift_with_migration.py ('k') | client/tests/kvm/tests/timedrift_with_stop.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698