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

Unified Diff: client/tests/kvm/tests/timedrift_with_stop.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_reboot.py ('k') | client/tests/kvm/tests/unattended_install.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_stop.py
diff --git a/client/tests/kvm/tests/timedrift_with_stop.py b/client/tests/kvm/tests/timedrift_with_stop.py
index 9f51ff92d1bea8c3a4eaa88ab048c98964bbd6b2..c2b040297e25cde37c4875673f654413196fac98 100644
--- a/client/tests/kvm/tests/timedrift_with_stop.py
+++ b/client/tests/kvm/tests/timedrift_with_stop.py
@@ -1,6 +1,6 @@
import logging, time
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_stop(test, params, env):
@@ -40,13 +40,13 @@ def run_timedrift_with_stop(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)
# Stop the guest
for i in range(stop_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("Stop %s second: iteration %d of %d...",
@@ -61,7 +61,7 @@ def run_timedrift_with_stop(test, params, env):
time.sleep(sleep_time)
# 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_
@@ -79,7 +79,7 @@ def run_timedrift_with_stop(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_reboot.py ('k') | client/tests/kvm/tests/unattended_install.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698