[dts] [PATCH V1] tests/vxlan:add timeout

Zhu, WenhuiX wenhuix.zhu at intel.com
Fri Oct 18 09:18:51 CEST 2019


Tested-by: Zhu, WenhuiX <wenhuix.zhu at intel.com>

-----Original Message-----
From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of zhu,shuai
Sent: Friday, October 18, 2019 3:19 PM
To: dts at dpdk.org
Cc: Zhu, ShuaiX <shuaix.zhu at intel.com>
Subject: [dts] [PATCH V1] tests/vxlan:add timeout

add time

Signed-off-by: zhu,shuai <shuaix.zhu at intel.com>
---
 tests/TestSuite_vxlan.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tests/TestSuite_vxlan.py b/tests/TestSuite_vxlan.py index 591ba8c..e29e4a9 100644
--- a/tests/TestSuite_vxlan.py
+++ b/tests/TestSuite_vxlan.py
@@ -444,8 +444,7 @@ class TestVxlan(TestCase, IxiaPacketGenerator):
         # save the capture packet into pcap format
         inst = self.tester.tcpdump_sniff_packets(self.recv_iface)
         config.send_pcap(self.tester_iface)
-        pkt = self.tester.load_tcpdump_sniff_packets(inst)
-        time.sleep(5)
+        pkt = self.tester.load_tcpdump_sniff_packets(inst, timeout=3)
 
         # extract the checksum offload from saved pcap file
         chksums = config.get_chksums(pkt=pkt)
--
2.17.2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestVxlan.log
Type: application/octet-stream
Size: 2504644 bytes
Desc: TestVxlan.log
URL: <http://mails.dpdk.org/archives/dts/attachments/20191018/932c59a6/attachment.obj>


More information about the dts mailing list