diff mbox series

[V1] tests/TestSuite_multiple_pthread:traverse list and pass parameters

Message ID 20210119074018.29602-1-yanx.xia@intel.com (mailing list archive)
State Accepted
Headers show
Series [V1] tests/TestSuite_multiple_pthread:traverse list and pass parameters | expand

Commit Message

Xia Yan Jan. 19, 2021, 7:40 a.m. UTC
traverse list and pass parameters

Signed-off-by: Xia Yan <yanx.xia@intel.com>
---
 tests/TestSuite_multiple_pthread.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Zhao, HaiyangX Jan. 19, 2021, 9:13 a.m. UTC | #1
Acked-by: Haiyang Zhao <haiyangx.zhao@intel.com>

Best Regards,
Zhao Haiyang

> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Xia Yan
> Sent: Tuesday, January 19, 2021 15:40
> To: dts@dpdk.org
> Cc: Xia, YanX <yanx.xia@intel.com>
> Subject: [dts] [PATCH V1] tests/TestSuite_multiple_pthread:traverse list and
> pass parameters
Tu, Lijuan Jan. 21, 2021, 8:10 a.m. UTC | #2
> Subject: [dts] [PATCH V1] tests/TestSuite_multiple_pthread:traverse list and
> pass parameters
> 
> traverse list and pass parameters
> 
> Signed-off-by: Xia Yan <yanx.xia@intel.com>

Applied,  next time please
	1, remove prefix "TestSuite" to reduce count.
	2, add space after colon
	3, don't duplicate subject with commit message.
diff mbox series

Patch

diff --git a/tests/TestSuite_multiple_pthread.py b/tests/TestSuite_multiple_pthread.py
index 5d4a1f67..8d9dc3f7 100644
--- a/tests/TestSuite_multiple_pthread.py
+++ b/tests/TestSuite_multiple_pthread.py
@@ -231,7 +231,8 @@  class TestMultiplePthread(TestCase):
         Run after each test case.
         """
         if len(self.send_sessions) != 0:
-            self.pkt.stop_send_pkt_bg(self.send_sessions)
+            for session in self.send_sessions:
+                self.pkt.stop_send_pkt_bg(session)
         self.dut.kill_all()
 
     def tear_down_all(self):