test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/TestSuite_short_live:add rule filter ipv6 tag
@ 2020-01-07  5:43 xizhan4x
  2020-01-07  7:12 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: xizhan4x @ 2020-01-07  5:43 UTC (permalink / raw)
  To: dts; +Cc: xizhan4x

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


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

end of thread, other threads:[~2020-01-07  7:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-07  5:43 [dts] [PATCH V1] tests/TestSuite_short_live:add rule filter ipv6 tag xizhan4x
2020-01-07  7:12 ` Tu, Lijuan

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