[V1] tests/tx_preparation: modify match string of packet content
Checks
Commit Message
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(-)
Comments
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
@@ -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!!!",