test suite reviews and discussions
 help / color / mirror / Atom feed
From: "chen,bo" <box.c.chen@intel.com>
To: dts@dpdk.org
Cc: "chen,bo" <box.c.chen@intel.com>
Subject: [dts] [PATCH V1] tests/qos_api:set all port to DCB mode
Date: Thu, 10 Oct 2019 10:38:55 +0800	[thread overview]
Message-ID: <1570675135-49537-1-git-send-email-box.c.chen@intel.com> (raw)

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


             reply	other threads:[~2019-10-10  2:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-10  2:38 chen,bo [this message]
2019-10-10  5:45 ` Zhang, YanX A

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1570675135-49537-1-git-send-email-box.c.chen@intel.com \
    --to=box.c.chen@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).