test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/qos_api:set all port to DCB mode
@ 2019-10-10  2:38 chen,bo
  2019-10-10  5:45 ` Zhang, YanX A
  0 siblings, 1 reply; 2+ messages in thread
From: chen,bo @ 2019-10-10  2:38 UTC (permalink / raw)
  To: dts; +Cc: chen,bo

start testpmd need set all port to DCB mode

Signed-off-by: chen,bo <box.c.chen@intel.com>
---
 tests/TestSuite_qos_api.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_qos_api.py b/tests/TestSuite_qos_api.py
index c25890b..c25d263 100644
--- a/tests/TestSuite_qos_api.py
+++ b/tests/TestSuite_qos_api.py
@@ -114,8 +114,8 @@ class TestQosApi(TestCase):
         set DCB
         """
         self.dut.send_expect('port stop all', 'testpmd> ')
-        self.dut.send_expect('port config 0 dcb vt off %s pfc off' % n, 'testpmd> ')
-        self.dut.send_expect('port config 1 dcb vt off %s pfc off' % n, 'testpmd> ')
+        for i in range(len(self.dut.ports_info)):
+            self.dut.send_expect('port config %s dcb vt off %s pfc off' % (i, n), 'testpmd> ')
         self.dut.send_expect('port start all', 'testpmd> ')
 
     def scapy_send_packet_verify(self, n):
-- 
2.17.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dts] [PATCH V1] tests/qos_api:set all port to DCB mode
  2019-10-10  2:38 [dts] [PATCH V1] tests/qos_api:set all port to DCB mode chen,bo
@ 2019-10-10  5:45 ` Zhang, YanX A
  0 siblings, 0 replies; 2+ messages in thread
From: Zhang, YanX A @ 2019-10-10  5:45 UTC (permalink / raw)
  To: Chen, BoX C, dts; +Cc: Chen, BoX C

[-- Attachment #1: Type: text/plain, Size: 1263 bytes --]

Tested-by:  Zhang, YanX A <yanx.a.zhang@intel.com>

-----Original Message-----
From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of chen,bo
Sent: Thursday, October 10, 2019 10:39 AM
To: dts@dpdk.org
Cc: Chen, BoX C <box.c.chen@intel.com>
Subject: [dts] [PATCH V1] tests/qos_api:set all port to DCB mode

start testpmd need set all port to DCB mode

Signed-off-by: chen,bo <box.c.chen@intel.com>
---
 tests/TestSuite_qos_api.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_qos_api.py b/tests/TestSuite_qos_api.py index c25890b..c25d263 100644
--- a/tests/TestSuite_qos_api.py
+++ b/tests/TestSuite_qos_api.py
@@ -114,8 +114,8 @@ class TestQosApi(TestCase):
         set DCB
         """
         self.dut.send_expect('port stop all', 'testpmd> ')
-        self.dut.send_expect('port config 0 dcb vt off %s pfc off' % n, 'testpmd> ')
-        self.dut.send_expect('port config 1 dcb vt off %s pfc off' % n, 'testpmd> ')
+        for i in range(len(self.dut.ports_info)):
+            self.dut.send_expect('port config %s dcb vt off %s pfc off' 
+ % (i, n), 'testpmd> ')
         self.dut.send_expect('port start all', 'testpmd> ')
 
     def scapy_send_packet_verify(self, n):
--
2.17.2


[-- Attachment #2: TestQosApi.log --]
[-- Type: application/octet-stream, Size: 54852 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-10  5:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-10  2:38 [dts] [PATCH V1] tests/qos_api:set all port to DCB mode chen,bo
2019-10-10  5:45 ` Zhang, YanX A

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).