test suite reviews and discussions
 help / color / mirror / Atom feed
From: Wenjie Li <wenjiex.a.li@intel.com>
To: dts@dpdk.org
Cc: Wenjie Li <wenjiex.a.li@intel.com>
Subject: [dts] [PATCH V1] tests/queue_start_stop: change the verify way
Date: Mon, 24 Jun 2019 12:09:05 +0800	[thread overview]
Message-ID: <1561349345-53593-1-git-send-email-wenjiex.a.li@intel.com> (raw)

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


             reply	other threads:[~2019-06-24  4:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-24  4:09 Wenjie Li [this message]
2019-06-24  8:52 ` Ma, LihongX

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=1561349345-53593-1-git-send-email-wenjiex.a.li@intel.com \
    --to=wenjiex.a.li@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).