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

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).