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

Unified Diff: client/virt/tests/netperf.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/multicast.py ('k') | client/virt/tests/nic_promisc.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/virt/tests/netperf.py
diff --git a/client/tests/kvm/tests/netperf.py b/client/virt/tests/netperf.py
similarity index 96%
rename from client/tests/kvm/tests/netperf.py
rename to client/virt/tests/netperf.py
index 5fdd4813c8be3db74466101131f0271a3b323920..5fd1b25fd1897e7815852c30912fa1d130025298 100644
--- a/client/tests/kvm/tests/netperf.py
+++ b/client/virt/tests/netperf.py
@@ -1,8 +1,7 @@
import logging, os, signal
from autotest_lib.client.common_lib import error
from autotest_lib.client.bin import utils
-import kvm_subprocess, kvm_utils
-
+from autotest_lib.client.virt import aexpect, virt_utils
def run_netperf(test, params, env):
"""
@@ -40,7 +39,7 @@ def run_netperf(test, params, env):
try:
session_serial.cmd(firewall_flush)
- except kvm_subprocess.ShellError:
+ except aexpect.ShellError:
logging.warning("Could not flush firewall rules on guest")
session_serial.cmd(setup_cmd % "/tmp", timeout=200)
@@ -92,7 +91,7 @@ def run_netperf(test, params, env):
bg = []
nic_num = len(params.get("nics").split())
for i in range(nic_num):
- bg.append(kvm_utils.Thread(netperf, (i,)))
+ bg.append(virt_utils.Thread(netperf, (i,)))
bg[i].start()
completed = False
« no previous file with comments | « client/virt/tests/multicast.py ('k') | client/virt/tests/nic_promisc.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698