From: "Ma, LihongX" <lihongx.ma@intel.com>
To: "Li, WenjieX A" <wenjiex.a.li@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Li, WenjieX A" <wenjiex.a.li@intel.com>
Subject: Re: [dts] [PATCH V1] tests/queue_start_stop: change the verify way
Date: Mon, 24 Jun 2019 08:52:53 +0000 [thread overview]
Message-ID: <BE1E572D0441E34284F1F8B7AC28F1970BACE2F1@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <1561349345-53593-1-git-send-email-wenjiex.a.li@intel.com>
Hi, wenjie
As feedback from Phanendra Vukkisala, on cavium_a063 platform , it will output "ports 0 queue 0 receive 4 packages"
So I think you will change you code base on different env.
-----Original Message-----
From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Wenjie Li
Sent: Monday, June 24, 2019 12:09 PM
To: dts@dpdk.org
Cc: Li, WenjieX A <wenjiex.a.li@intel.com>
Subject: [dts] [PATCH V1] tests/queue_start_stop: change the verify way
In dts d9bc72a3, Phanendra Vukkisala changed the packet number to 4 and the verify message to "ports 0 queue 0 receive 4 packages", but in test, the out is:
"
ports 0 queue 0 receive 1 packages
ports 0 queue 0 receive 1 packages
ports 0 queue 0 receive 1 packages
ports 0 queue 0 receive 1 packages
"
So change the verify way.
Signed-off-by: Wenjie Li <wenjiex.a.li@intel.com>
---
tests/TestSuite_queue_start_stop.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tests/TestSuite_queue_start_stop.py b/tests/TestSuite_queue_start_stop.py
index 34a2f41..7fdef30 100644
--- a/tests/TestSuite_queue_start_stop.py
+++ b/tests/TestSuite_queue_start_stop.py
@@ -157,7 +157,12 @@ class TestQueueStartStop(TestCase):
except Exception, e:
raise IOError("queue start/stop forward failure: %s" % e)
- self.verify("ports 0 queue 0 receive 4 packages" in out, "start queue revice package failed, out = %s"%out)
+ lines = out.split("\r\n")
+ print lines
+ if len(lines) == 5:
+ lines.pop()
+ for line in lines:
+ self.verify("ports 0 queue 0 receive 1 packages" in line,
+ "start queue revice package failed, out = %s" % out)
try:
# start tx queue test
--
2.17.2
prev parent reply other threads:[~2019-06-24 8:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-24 4:09 Wenjie Li
2019-06-24 8:52 ` Ma, LihongX [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=BE1E572D0441E34284F1F8B7AC28F1970BACE2F1@SHSMSX101.ccr.corp.intel.com \
--to=lihongx.ma@intel.com \
--cc=dts@dpdk.org \
--cc=wenjiex.a.li@intel.com \
/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).