test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Han, YingyaX" <yingyax.han@intel.com>
To: "Xiao, QimaiX" <qimaix.xiao@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Xiao, QimaiX" <qimaix.xiao@intel.com>
Subject: Re: [dts] [PATCH V1]framework/tester: fix random packet with user	define ip exceeded list range
Date: Thu, 23 Apr 2020 01:26:15 +0000	[thread overview]
Message-ID: <BN7PR11MB28182282DED4F41D5036F0B0FFD30@BN7PR11MB2818.namprd11.prod.outlook.com> (raw)
In-Reply-To: <1587553304-408542-1-git-send-email-qimaix.xiao@intel.com>

[-- Attachment #1: Type: text/plain, Size: 1527 bytes --]

Tested-by: Han,YingyaX <yingyax.han@intel.com>

BRs,
Yingya

-----Original Message-----
From: dts <dts-bounces@dpdk.org> On Behalf Of Xiao Qimai
Sent: Wednesday, April 22, 2020 7:02 PM
To: dts@dpdk.org
Cc: Xiao, QimaiX <qimaix.xiao@intel.com>
Subject: [dts] [PATCH V1]framework/tester: fix random packet with user define ip exceeded list range

*. compare packets with same index

Signed-off-by: Xiao Qimai <qimaix.xiao@intel.com>
---
 framework/tester.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/framework/tester.py b/framework/tester.py index 6e92847..f55818e 100644
--- a/framework/tester.py
+++ b/framework/tester.py
@@ -767,10 +767,10 @@ class Tester(Crb):
                     else:
                         prev_id = t_idx
 
-                if compare_f(tx_pkts[txport].pktgen.pkts[t_idx], recv_pkts[idx], "L4") is False:
+                if compare_f(tx_pkts[txport].pktgen.pkts[idx], recv_pkts[idx], "L4") is False:
                     self.logger.warning("Pkt received index %d not match original " \
-                          "index %d" % (idx, t_idx))
-                    self.logger.info("Sent: %s" % strip_f(tx_pkts[txport].pktgen.pkts[t_idx], "L4"))
+                          "index %d" % (idx, idx))
+                    self.logger.info("Sent: %s" % 
+ strip_f(tx_pkts[txport].pktgen.pkts[idx], "L4"))
                     self.logger.info("Recv: %s" % strip_f(recv_pkts[idx], "L4"))
                     return False
 
--
1.8.3.1


[-- Attachment #2: TestDistributor.log --]
[-- Type: application/octet-stream, Size: 104560 bytes --]

      reply	other threads:[~2020-04-23  1:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-22 11:01 Xiao Qimai
2020-04-23  1:26 ` Han, YingyaX [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=BN7PR11MB28182282DED4F41D5036F0B0FFD30@BN7PR11MB2818.namprd11.prod.outlook.com \
    --to=yingyax.han@intel.com \
    --cc=dts@dpdk.org \
    --cc=qimaix.xiao@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).