test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts][PATCH V1] tests/tx_preparation: modify match string of packet content
@ 2022-08-29  8:17 Dukai Yuan
  2022-09-02  1:42 ` lijuan.tu
  0 siblings, 1 reply; 2+ messages in thread
From: Dukai Yuan @ 2022-08-29  8:17 UTC (permalink / raw)
  To: dts; +Cc: Dukai Yuan

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [dts][PATCH V1] tests/tx_preparation: modify match string of packet content
  2022-08-29  8:17 [dts][PATCH V1] tests/tx_preparation: modify match string of packet content Dukai Yuan
@ 2022-09-02  1:42 ` lijuan.tu
  0 siblings, 0 replies; 2+ messages in thread
From: lijuan.tu @ 2022-09-02  1:42 UTC (permalink / raw)
  To: dts, Dukai Yuan; +Cc: Dukai Yuan

On Mon, 29 Aug 2022 16:17:06 +0800, Dukai Yuan <dukaix.yuan@intel.com> wrote:
> 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>

Acked-by: Lijuan Tu <lijuan.tu@intel.com>
Applied, thanks

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-02  1:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-29  8:17 [dts][PATCH V1] tests/tx_preparation: modify match string of packet content Dukai Yuan
2022-09-02  1:42 ` lijuan.tu

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).