[dts] [PATCH V1] tests/dpdk_gro_lib: add bind ports of ports.cfg step

Ling Wei weix.ling at intel.com
Tue Mar 30 11:23:12 CEST 2021


Add bind ports of ports.cfg step to avoid the effects 
on other testsuites.

Signed-off-by: Ling Wei <weix.ling at intel.com>
---
 tests/TestSuite_dpdk_gro_lib.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/TestSuite_dpdk_gro_lib.py b/tests/TestSuite_dpdk_gro_lib.py
index efd04ffd..f5668ad4 100644
--- a/tests/TestSuite_dpdk_gro_lib.py
+++ b/tests/TestSuite_dpdk_gro_lib.py
@@ -483,6 +483,9 @@ class TestDPDKGROLib(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



More information about the dts mailing list