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

Unified Diff: client/virt/tests/multicast.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/mac_change.py ('k') | client/virt/tests/netperf.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/virt/tests/multicast.py
diff --git a/client/tests/kvm/tests/multicast.py b/client/virt/tests/multicast.py
similarity index 90%
rename from client/tests/kvm/tests/multicast.py
rename to client/virt/tests/multicast.py
index 5dfecbc80efdfce720f76c356246f19ad02e4bcf..13e3f0d7978878421f5ef3023605392bc04a8fac 100644
--- a/client/tests/kvm/tests/multicast.py
+++ b/client/virt/tests/multicast.py
@@ -1,7 +1,7 @@
import logging, os, re
from autotest_lib.client.common_lib import error
from autotest_lib.client.bin import utils
-import kvm_test_utils, kvm_subprocess
+from autotest_lib.client.virt import virt_test_utils, aexpect
def run_multicast(test, params, env):
@@ -25,7 +25,7 @@ def run_multicast(test, params, env):
def run_guest(cmd):
try:
session.cmd(cmd)
- except kvm_subprocess.ShellError, e:
+ except aexpect.ShellError, e:
logging.warn(e)
def run_host_guest(cmd):
@@ -70,16 +70,16 @@ def run_multicast(test, params, env):
mcast = "%s.%d" % (prefix, new_suffix)
logging.info("Initial ping test, mcast: %s", mcast)
- s, o = kvm_test_utils.ping(mcast, 10, interface=ifname, timeout=20)
+ s, o = virt_test_utils.ping(mcast, 10, interface=ifname, timeout=20)
if s != 0:
raise error.TestFail(" Ping return non-zero value %s" % o)
logging.info("Flood ping test, mcast: %s", mcast)
- kvm_test_utils.ping(mcast, None, interface=ifname, flood=True,
+ virt_test_utils.ping(mcast, None, interface=ifname, flood=True,
output_func=None, timeout=flood_minutes*60)
logging.info("Final ping test, mcast: %s", mcast)
- s, o = kvm_test_utils.ping(mcast, 10, interface=ifname, timeout=20)
+ s, o = virt_test_utils.ping(mcast, 10, interface=ifname, timeout=20)
if s != 0:
raise error.TestFail("Ping failed, status: %s, output: %s" %
(s, o))
« no previous file with comments | « client/virt/tests/mac_change.py ('k') | client/virt/tests/netperf.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698