test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1 2/2] tests/dpdk_gso_lib: delete unbind ports of ports.cfg step
@ 2021-03-30  8:50 Ling Wei
  0 siblings, 0 replies; only message in thread
From: Ling Wei @ 2021-03-30  8:50 UTC (permalink / raw)
  To: dts; +Cc: Ling Wei

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 <weix.ling@intel.com>
---
 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-30  8:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-30  8:50 [dts] [PATCH V1 2/2] tests/dpdk_gso_lib: delete unbind ports of ports.cfg step Ling Wei

test suite reviews and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git