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

Unified Diff: client/virt/tests/nicdriver_unload.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/virt/tests/nic_promisc.py ('k') | client/virt/tests/ping.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/virt/tests/nicdriver_unload.py
diff --git a/client/tests/kvm/tests/nicdriver_unload.py b/client/virt/tests/nicdriver_unload.py
similarity index 88%
rename from client/tests/kvm/tests/nicdriver_unload.py
rename to client/virt/tests/nicdriver_unload.py
index de5fa8bc20975c0e92ed09378c7e6caaf867cd5d..8296523030cc157c8f559159789b784c71eb65d6 100644
--- a/client/tests/kvm/tests/nicdriver_unload.py
+++ b/client/virt/tests/nicdriver_unload.py
@@ -2,7 +2,7 @@ import logging, threading, os, time
from autotest_lib.client.common_lib import error
from autotest_lib.client.bin import utils
from autotest_lib.client.tests.kvm.tests import file_transfer
-import kvm_test_utils, kvm_utils
+from autotest_lib.client.virt import virt_test_utils, virt_utils
def run_nicdriver_unload(test, params, env):
@@ -24,8 +24,8 @@ def run_nicdriver_unload(test, params, env):
vm.verify_alive()
session_serial = vm.wait_for_serial_login(timeout=timeout)
- ethname = kvm_test_utils.get_linux_ifname(session_serial,
- vm.get_mac_address(0))
+ ethname = virt_test_utils.get_linux_ifname(session_serial,
+ vm.get_mac_address(0))
# get ethernet driver from '/sys' directory.
# ethtool can do the same thing and doesn't care about os type.
@@ -36,12 +36,13 @@ def run_nicdriver_unload(test, params, env):
readlink_cmd = params.get("readlink_command", "readlink -e")
driver = os.path.basename(session_serial.cmd("%s %s" % (readlink_cmd,
sys_path)).strip())
+
logging.info("driver is %s", driver)
try:
threads = []
for t in range(int(params.get("sessions_num", "10"))):
- thread = kvm_utils.Thread(file_transfer.run_file_transfer,
+ thread = virt_utils.Thread(file_transfer.run_file_transfer,
(test, params, env))
thread.start()
threads.append(thread)
« no previous file with comments | « client/virt/tests/nic_promisc.py ('k') | client/virt/tests/ping.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698