From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 26528938C for ; Fri, 13 Nov 2015 07:44:52 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP; 12 Nov 2015 22:44:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,286,1444719600"; d="scan'208";a="836640116" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.238.55.12]) by fmsmga001.fm.intel.com with ESMTP; 12 Nov 2015 22:44:51 -0800 From: Lijuan Tu To: dts@dpdk.org Date: Fri, 13 Nov 2015 14:40:12 +0800 Message-Id: <1447396812-3365-1-git-send-email-lijuanx.a.tu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH]test_ping: remove tester ip after finish test X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Nov 2015 06:44:53 -0000 From: lijuan tu testers have the same IP on the one machine will cause ip conflict Signed-off-by: lijuan tu --- tests/TestSuite_kni.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/TestSuite_kni.py b/tests/TestSuite_kni.py index 10e922f..69a20fe 100644 --- a/tests/TestSuite_kni.py +++ b/tests/TestSuite_kni.py @@ -594,6 +594,9 @@ class TestKni(TestCase): (virtual_interface, ''.join(ipv6list)), "# ", 10) self.verify( "0 received, 100% packet loss" in out, "ping6 not supported") + # remove ip from tester + self.tester.send_expect( + "ip addr del 192.168.%d.2 dev %s" % (port, tx_interface), "# ") for port in self.config['ports']: tx_port = self.tester.get_local_port(port) -- 2.1.0