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

Message ID 20210330092312.323429-1-weix.ling@intel.com (mailing list archive)
State Accepted
Headers
Series [V1] tests/dpdk_gro_lib: add bind ports of ports.cfg step |

Commit Message

Ling, WeiX March 30, 2021, 9:23 a.m. UTC
  Add bind ports of ports.cfg step to avoid the effects 
on other testsuites.

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

Comments

Ling, WeiX March 30, 2021, 9:30 a.m. UTC | #1
> -----Original Message-----
> From: Ling, WeiX <weix.ling@intel.com>
> Sent: Tuesday, March 30, 2021 05:23 PM
> To: dts@dpdk.org
> Cc: Ling, WeiX <weix.ling@intel.com>
> Subject: [dts][PATCH V1] tests/dpdk_gro_lib: add bind ports of ports.cfg step
> 
Tested-by: Wei Ling <weix.ling@intel.com>
  
Wang, Yinan April 1, 2021, 5:17 a.m. UTC | #2
Acked-by: Wang, Yinan <yinan.wang@intel.com>

> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Ling, WeiX
> Sent: 2021?3?30? 17:30
> To: dts@dpdk.org
> Subject: Re: [dts] [PATCH V1] tests/dpdk_gro_lib: add bind ports of ports.cfg
> step
> 
> > -----Original Message-----
> > From: Ling, WeiX <weix.ling@intel.com>
> > Sent: Tuesday, March 30, 2021 05:23 PM
> > To: dts@dpdk.org
> > Cc: Ling, WeiX <weix.ling@intel.com>
> > Subject: [dts][PATCH V1] tests/dpdk_gro_lib: add bind ports of ports.cfg
> step
> >
> Tested-by: Wei Ling <weix.ling@intel.com>
  
Tu, Lijuan April 7, 2021, 1:08 a.m. UTC | #3
Applied

> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Wang, Yinan
> Sent: 2021年4月1日 13:18
> To: Ling, WeiX <weix.ling@intel.com>; dts@dpdk.org
> Subject: Re: [dts] [PATCH V1] tests/dpdk_gro_lib: add bind ports of ports.cfg
> step
> 
> Acked-by: Wang, Yinan <yinan.wang@intel.com>
> 
> > -----Original Message-----
> > From: dts <dts-bounces@dpdk.org> On Behalf Of Ling, WeiX
> > Sent: 2021?3?30? 17:30
> > To: dts@dpdk.org
> > Subject: Re: [dts] [PATCH V1] tests/dpdk_gro_lib: add bind ports of
> > ports.cfg step
> >
> > > -----Original Message-----
> > > From: Ling, WeiX <weix.ling@intel.com>
> > > Sent: Tuesday, March 30, 2021 05:23 PM
> > > To: dts@dpdk.org
> > > Cc: Ling, WeiX <weix.ling@intel.com>
> > > Subject: [dts][PATCH V1] tests/dpdk_gro_lib: add bind ports of
> > > ports.cfg
> > step
> > >
> > Tested-by: Wei Ling <weix.ling@intel.com>
  

Patch

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)