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

Unified Diff: client/tests/kvm/tests/timedrift.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/steps.py ('k') | client/tests/kvm/tests/timedrift_with_migration.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tests/kvm/tests/timedrift.py
diff --git a/client/tests/kvm/tests/timedrift.py b/client/tests/kvm/tests/timedrift.py
index 9f62b4ac872790b8735f69d367cf8e933ed25939..123a111e6f34e0fcf85e8a65d850298764936cdd 100644
--- a/client/tests/kvm/tests/timedrift.py
+++ b/client/tests/kvm/tests/timedrift.py
@@ -1,6 +1,6 @@
import logging, time, commands
from autotest_lib.client.common_lib import error
-import kvm_subprocess, kvm_test_utils
+from autotest_lib.client.virt import virt_test_utils, aexpect
def run_timedrift(test, params, env):
@@ -100,7 +100,7 @@ def run_timedrift(test, params, env):
# Get time before load
# (ht stands for host time, gt stands for guest time)
- (ht0, gt0) = kvm_test_utils.get_time(session,
+ (ht0, gt0) = virt_test_utils.get_time(session,
time_command,
time_filter_re,
time_format)
@@ -113,10 +113,10 @@ def run_timedrift(test, params, env):
logging.info("Starting load on host...")
for i in range(host_load_instances):
host_load_sessions.append(
- kvm_subprocess.run_bg(host_load_command,
- output_func=logging.debug,
- output_prefix="(host load %d) " % i,
- timeout=0.5))
+ aexpect.run_bg(host_load_command,
+ output_func=logging.debug,
+ output_prefix="(host load %d) " % i,
+ timeout=0.5))
# Set the CPU affinity of the load process
pid = host_load_sessions[-1].get_pid()
set_cpu_affinity(pid, cpu_mask)
@@ -126,7 +126,7 @@ def run_timedrift(test, params, env):
time.sleep(load_duration)
# Get time delta after load
- (ht1, gt1) = kvm_test_utils.get_time(session,
+ (ht1, gt1) = virt_test_utils.get_time(session,
time_command,
time_filter_re,
time_format)
@@ -157,7 +157,7 @@ def run_timedrift(test, params, env):
time.sleep(rest_duration)
# Get time after rest
- (ht2, gt2) = kvm_test_utils.get_time(session,
+ (ht2, gt2) = virt_test_utils.get_time(session,
time_command,
time_filter_re,
time_format)
« no previous file with comments | « client/tests/kvm/tests/steps.py ('k') | client/tests/kvm/tests/timedrift_with_migration.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698