test suite reviews and discussions
 help / color / mirror / Atom feed
From: Dukai Yuan <dukaix.yuan@intel.com>
To: dts@dpdk.org
Cc: Dukai Yuan <dukaix.yuan@intel.com>
Subject: [dts][PATCH V1] tests/tx_preparation: modify match string of packet content
Date: Mon, 29 Aug 2022 16:17:06 +0800	[thread overview]
Message-ID: <20220829081706.24031-1-dukaix.yuan@intel.com> (raw)

When send 5986 byte packet, testpmd will receive 4 1460 byte packets and 1 146 byte
packet, when use out.count("length 146"), it will retrun 5, it's worng, when use 
out.count("length 146:"), it will retrun 1 it's right.

Signed-off-by: Dukai Yuan <dukaix.yuan@intel.com>
---
 tests/TestSuite_tx_preparation.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/TestSuite_tx_preparation.py b/tests/TestSuite_tx_preparation.py
index 9b70699c..5b1a7cf0 100644
--- a/tests/TestSuite_tx_preparation.py
+++ b/tests/TestSuite_tx_preparation.py
@@ -171,7 +171,7 @@ class TestTX_preparation(TestCase):
                         "Failed to verify TSO correctness for large packets!!!",
                     )
                     if LastLength != 0:
-                        num = out.count("length %s" % LastLength)
+                        num = out.count("length %s:" % LastLength)
                         self.verify(
                             "length %s" % LastLength in out and num == count,
                             "Failed to verify TSO correctness for large packets!!!",
-- 
2.17.1


             reply	other threads:[~2022-08-29  8:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-29  8:17 Dukai Yuan [this message]
2022-09-02  1:42 ` lijuan.tu

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=20220829081706.24031-1-dukaix.yuan@intel.com \
    --to=dukaix.yuan@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).