test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [patch] tests ipfrag_fragment : extend more time for sniffing packets
@ 2015-11-04  7:32 Lijuan Tu
  2015-11-04  8:01 ` Liu, Yong
  0 siblings, 1 reply; 2+ messages in thread
From: Lijuan Tu @ 2015-11-04  7:32 UTC (permalink / raw)
  To: dts

Signed-off-by: Lijuan Tu <lijuanx.a.tu@intel.com>
---
 tests/TestSuite_ipfrag.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_ipfrag.py b/tests/TestSuite_ipfrag.py
index e7beb1a..c2623b6 100644
--- a/tests/TestSuite_ipfrag.py
+++ b/tests/TestSuite_ipfrag.py
@@ -153,7 +153,7 @@ l3fwd_ipv4_route_array[] = {\\\n"
             # set wait packet
             self.tester.scapy_background()
             self.tester.scapy_append('import string')
-            self.tester.scapy_append('p = sniff(iface="%s", count=%d, timeout=10)' % (rxItf, expPkts))
+            self.tester.scapy_append('p = sniff(iface="%s", count=%d, timeout=60)' % (rxItf, expPkts))
             self.tester.scapy_append('nr_packets=len(p)')
             self.tester.scapy_append('reslist = [p[i].sprintf("%IP.len%;%IP.id%;%IP.flags%;%IP.frag%") for i in range(nr_packets)]')
             self.tester.scapy_append('RESULT = string.join(reslist, ",")')
@@ -211,7 +211,7 @@ l3fwd_ipv4_route_array[] = {\\\n"
             # set wait packet
             self.tester.scapy_background()
             self.tester.scapy_append('import string')
-            self.tester.scapy_append('p = sniff(iface="%s", count=%d, timeout=15)' % (rxItf, expPkts))
+            self.tester.scapy_append('p = sniff(iface="%s", count=%d, timeout=60)' % (rxItf, expPkts))
             self.tester.scapy_append('nr_packets=len(p)')
             self.tester.scapy_append('reslist = [p[i].sprintf("%IPv6.plen%;%IPv6.id%;%IPv6ExtHdrFragment.m%;%IPv6ExtHdrFragment.offset%") for i in range(nr_packets)]')
             self.tester.scapy_append('RESULT = string.join(reslist, ",")')
-- 
1.9.1

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

* Re: [dts] [patch] tests ipfrag_fragment : extend more time for sniffing packets
  2015-11-04  7:32 [dts] [patch] tests ipfrag_fragment : extend more time for sniffing packets Lijuan Tu
@ 2015-11-04  8:01 ` Liu, Yong
  0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yong @ 2015-11-04  8:01 UTC (permalink / raw)
  To: Lijuan Tu, dts

Applied. Thanks.

On 11/04/2015 03:32 PM, Lijuan Tu wrote:
> Signed-off-by: Lijuan Tu <lijuanx.a.tu@intel.com>
> ---
>   tests/TestSuite_ipfrag.py | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/TestSuite_ipfrag.py b/tests/TestSuite_ipfrag.py
> index e7beb1a..c2623b6 100644
> --- a/tests/TestSuite_ipfrag.py
> +++ b/tests/TestSuite_ipfrag.py
> @@ -153,7 +153,7 @@ l3fwd_ipv4_route_array[] = {\\\n"
>               # set wait packet
>               self.tester.scapy_background()
>               self.tester.scapy_append('import string')
> -            self.tester.scapy_append('p = sniff(iface="%s", count=%d, timeout=10)' % (rxItf, expPkts))
> +            self.tester.scapy_append('p = sniff(iface="%s", count=%d, timeout=60)' % (rxItf, expPkts))
>               self.tester.scapy_append('nr_packets=len(p)')
>               self.tester.scapy_append('reslist = [p[i].sprintf("%IP.len%;%IP.id%;%IP.flags%;%IP.frag%") for i in range(nr_packets)]')
>               self.tester.scapy_append('RESULT = string.join(reslist, ",")')
> @@ -211,7 +211,7 @@ l3fwd_ipv4_route_array[] = {\\\n"
>               # set wait packet
>               self.tester.scapy_background()
>               self.tester.scapy_append('import string')
> -            self.tester.scapy_append('p = sniff(iface="%s", count=%d, timeout=15)' % (rxItf, expPkts))
> +            self.tester.scapy_append('p = sniff(iface="%s", count=%d, timeout=60)' % (rxItf, expPkts))
>               self.tester.scapy_append('nr_packets=len(p)')
>               self.tester.scapy_append('reslist = [p[i].sprintf("%IPv6.plen%;%IPv6.id%;%IPv6ExtHdrFragment.m%;%IPv6ExtHdrFragment.offset%") for i in range(nr_packets)]')
>               self.tester.scapy_append('RESULT = string.join(reslist, ",")')

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

end of thread, other threads:[~2015-11-04  7:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-04  7:32 [dts] [patch] tests ipfrag_fragment : extend more time for sniffing packets Lijuan Tu
2015-11-04  8:01 ` Liu, Yong

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