From: Lucas Meneghel Rodrigues Subject: [PATCH] virt.tests: Fix issue #18 - set_link Date: Thu, 12 Jan 2012 19:19:50 -0200 Message-ID: <1326403190-4344-1-git-send-email-lmr@redhat.com> Cc: kvm@vger.kernel.org, Lucas Meneghel Rodrigues To: autotest@test.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:12868 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755438Ab2ALVTs (ORCPT ); Thu, 12 Jan 2012 16:19:48 -0500 Sender: kvm-owner@vger.kernel.org List-ID: 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 --- client/tests/kvm/tests/set_link.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/tests/kvm/tests/set_link.py b/client/tests/kvm/tests/set_link.py index ef34c71..f50dc93 100644 --- a/client/tests/kvm/tests/set_link.py +++ b/client/tests/kvm/tests/set_link.py @@ -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 -- 1.7.7.5