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

Unified Diff: client/tests/kvm/tests/nic_bonding.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/module_probe.py ('k') | client/tests/kvm/tests/nic_hotplug.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tests/kvm/tests/nic_bonding.py
diff --git a/client/tests/kvm/tests/nic_bonding.py b/client/tests/kvm/tests/nic_bonding.py
index 1d53e0eee79bb1f627a98791037888f1087ab1ee..a71804cb7ad9c355c8958be3c7f1dbfd31a473d9 100644
--- a/client/tests/kvm/tests/nic_bonding.py
+++ b/client/tests/kvm/tests/nic_bonding.py
@@ -1,6 +1,6 @@
import logging, time, threading
from autotest_lib.client.tests.kvm.tests import file_transfer
-import kvm_utils, kvm_test_utils
+from autotest_lib.client.virt import virt_test_utils, virt_utils
def run_nic_bonding(test, params, env):
@@ -30,7 +30,7 @@ def run_nic_bonding(test, params, env):
session_serial.cmd(modprobe_cmd)
session_serial.cmd("ifconfig bond0 up")
- ifnames = [kvm_test_utils.get_linux_ifname(session_serial,
+ ifnames = [virt_test_utils.get_linux_ifname(session_serial,
vm.get_mac_address(vlan))
for vlan, nic in enumerate(params.get("nics").split())]
setup_cmd = "ifenslave bond0 " + " ".join(ifnames)
@@ -42,7 +42,7 @@ def run_nic_bonding(test, params, env):
file_transfer.run_file_transfer(test, params, env)
logging.info("Failover test with file transfer")
- transfer_thread = kvm_utils.Thread(file_transfer.run_file_transfer,
+ transfer_thread = virt_utils.Thread(file_transfer.run_file_transfer,
(test, params, env))
try:
transfer_thread.start()
@@ -60,5 +60,3 @@ def run_nic_bonding(test, params, env):
finally:
session_serial.sendline("ifenslave -d bond0 " + " ".join(ifnames))
session_serial.sendline("kill -9 `pgrep dhclient`")
-
-
« no previous file with comments | « client/tests/kvm/tests/module_probe.py ('k') | client/tests/kvm/tests/nic_hotplug.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698