virt.tests: Fix issue #18 - set_link
PATCH 1/1 virt.tests: Fix issue #18 - set_link
With the recent introduction of an improved set_link interface (see 4ada095f8bd3a3435d6f51db0b4164c7d1122070 and a9ef23f9ed66ca5892f8a3c784b33093d6b5ced4), update the set_link test with it and resolve issue #18.
Signed-off-by Lucas Meneghel Rodrigues <[email protected]>
--- client/tests/kvm/tests/set_link.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
client/tests/kvm/tests/set_link.py +2 -2
@@ -29,13 +29,13 @@ def run_set_link(test, params, env): """ ip = vm.get_address(0) - vm.monitor.cmd("set_link %s down" % linkid) + vm.set_link(linkid, up=False) s, o = virt_test_utils.ping(ip, count=10, timeout=20) if virt_test_utils.get_loss_ratio(o) != 100: raise error.TestFail("Still can ping the %s after down %s" % (ip, linkid)) - vm.monitor.cmd("set_link %s up" % linkid) + vm.set_link(linkid, up=True) s, o = virt_test_utils.ping(ip, count=10, timeout=20) # we use 100% here as the notification of link status changed may be # delayed in guest driver
Signature · 1 line
1.7.7.5