test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Zhang, YanX A" <yanx.a.zhang@intel.com>
To: "Chen, BoX C" <box.c.chen@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Chen, BoX C" <box.c.chen@intel.com>
Subject: Re: [dts] [PATCH V1] tests/qos_api:set all port to DCB mode
Date: Thu, 10 Oct 2019 05:45:17 +0000	[thread overview]
Message-ID: <2C49E4B25FAD1D419F7564D633EF72E1F5037D@SHSMSX105.ccr.corp.intel.com> (raw)
In-Reply-To: <1570675135-49537-1-git-send-email-box.c.chen@intel.com>

[-- 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 --]

      reply	other threads:[~2019-10-10  5:47 UTC|newest]

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

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=2C49E4B25FAD1D419F7564D633EF72E1F5037D@SHSMSX105.ccr.corp.intel.com \
    --to=yanx.a.zhang@intel.com \
    --cc=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).