test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Tu, Lijuan" <lijuan.tu@intel.com>
To: "Zhang, XiX" <xix.zhang@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Zhang, XiX" <xix.zhang@intel.com>
Subject: Re: [dts] [PATCH V1] tests/TestSuite_short_live:add rule filter ipv6 tag
Date: Tue, 7 Jan 2020 07:12:56 +0000	[thread overview]
Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBA3CE2@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <1578375807-79688-1-git-send-email-xix.zhang@intel.com>

applied

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xizhan4x
> Sent: Tuesday, January 7, 2020 1:43 PM
> To: dts@dpdk.org
> Cc: Zhang, XiX <xix.zhang@intel.com>
> Subject: [dts] [PATCH V1] tests/TestSuite_short_live:add rule filter ipv6 tag
> 
> add rule filter ipv6 tag
> 
> Signed-off-by: xizhan4x <xix.zhang@intel.com>
> ---
>  tests/TestSuite_short_live.py | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/TestSuite_short_live.py b/tests/TestSuite_short_live.py
> index dfccbd8..47a68ee 100644
> --- a/tests/TestSuite_short_live.py
> +++ b/tests/TestSuite_short_live.py
> @@ -102,16 +102,16 @@ class TestShortLiveApp(TestCase):
>          if (txPort == rxPort):
>              count = 2
> 
> -        inst = self.tester.tcpdump_sniff_packets(rxitf, count=count)
> +        filter_list = [{'layer': 'ether', 'config': {'type': 'not IPv6'}}]
> +        inst = self.tester.tcpdump_sniff_packets(rxitf,
> + count=count,filters=filter_list)
> 
>          pktlen = pktSize - 14
>          padding = pktlen - 20
>          self.tester.scapy_append('sendp([Ether(src="%s",
> dst="%s")/IP()/Raw(load="P"*%s)], iface="%s", count=4)' % (smac, dmac,
> padding, txitf))
> 
>          self.tester.scapy_execute()
> -        time.sleep(3)
> 
> -        pkts = self.tester.load_tcpdump_sniff_packets(inst)
> +        pkts = self.tester.load_tcpdump_sniff_packets(inst,timeout=2)
>          out = str(pkts[0].show)
>          self.logger.info('SCAPY Result:\n' + out + '\n\n\n')
>          if received:
> --
> 2.17.2


      reply	other threads:[~2020-01-07  7:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-07  5:43 xizhan4x
2020-01-07  7:12 ` Tu, Lijuan [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=8CE3E05A3F976642AAB0F4675D0AD20E0BBA3CE2@SHSMSX101.ccr.corp.intel.com \
    --to=lijuan.tu@intel.com \
    --cc=dts@dpdk.org \
    --cc=xix.zhang@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).