From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 09567A034F; Tue, 30 Mar 2021 10:52:18 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F0FE6406FF; Tue, 30 Mar 2021 10:52:17 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 7FD5C40691 for ; Tue, 30 Mar 2021 10:52:16 +0200 (CEST) IronPort-SDR: 3nHhN6IASVpkMw+WF4yrj7ks/q5BvmQQ5VPjZr3s7Sx0g9DNa045VbmSIgIHll+1eBUVZVVjC1 vApN+0ygrjkA== X-IronPort-AV: E=McAfee;i="6000,8403,9938"; a="188457152" X-IronPort-AV: E=Sophos;i="5.81,290,1610438400"; d="scan'208";a="188457152" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2021 01:52:14 -0700 IronPort-SDR: 3Pcxo2VA0JO1rLb0RGZzH5mYmg04IIwUPoHZdvK2R6fs67tqWL4awxvajVxE/WxHBIGS4sD6ZS ZsPkkqKzWupg== X-IronPort-AV: E=Sophos;i="5.81,290,1610438400"; d="scan'208";a="610035953" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2021 01:52:13 -0700 From: Ling Wei To: dts@dpdk.org Cc: Ling Wei Date: Tue, 30 Mar 2021 16:50:50 +0800 Message-Id: <20210330085050.322927-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1 2/2] tests/dpdk_gso_lib: delete unbind ports of ports.cfg step X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Delete unbind ports of ports.cfg step in set_up_all and tear_down_all to avoid impact other test suites. Signed-off-by: Ling Wei --- tests/TestSuite_dpdk_gso_lib.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/TestSuite_dpdk_gso_lib.py b/tests/TestSuite_dpdk_gso_lib.py index 8cb13a8f..41c71c1f 100644 --- a/tests/TestSuite_dpdk_gso_lib.py +++ b/tests/TestSuite_dpdk_gso_lib.py @@ -52,12 +52,9 @@ class TestDPDKGsoLib(TestCase): # it will use the port config in vhost_gro.cfg # And it need two interface reconnet in DUT - # unbind the port which config in ports.cfg + # get dut ports and default driver self.dut_ports = self.dut.get_ports() self.def_driver = self.dut.ports_info[self.dut_ports[0]]['port'].get_nic_driver() - for i in self.dut_ports: - port = self.dut.ports_info[i]['port'] - port.bind_driver() # get and bind the port in conf file self.pci = peer.get_pci_info() @@ -459,9 +456,6 @@ class TestDPDKGsoLib(TestCase): """ Run after each test suite. """ - for i in self.dut_ports: - port = self.dut.ports_info[i]['port'] - port.bind_driver(self.def_driver) self.unprepare_dpdk() self.dut.send_expect("ip netns del ns1", "#", 30) self.dut.send_expect("./usertools/dpdk-devbind.py -u %s" % (self.pci), '# ', 30) -- 2.25.1