[dts] [PATCH V1] tests/l3fwdacl:Increase the time of the default timeout.

Zhu, WenhuiX wenhuix.zhu at intel.com
Wed Oct 23 06:06:49 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: Wednesday, October 23, 2019 11:59 AM
To: dts at dpdk.org
Cc: Zhu, ShuaiX <shuaix.zhu at intel.com>
Subject: [dts] [PATCH V1] tests/l3fwdacl:Increase the time of the default timeout.

Increase the default timeout time in the send_pkt method.

Signed-off-by: zhu,shuai <shuaix.zhu at intel.com>
---
 tests/TestSuite_l3fwdacl.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/TestSuite_l3fwdacl.py b/tests/TestSuite_l3fwdacl.py index dce37de..564ceb2 100644
--- a/tests/TestSuite_l3fwdacl.py
+++ b/tests/TestSuite_l3fwdacl.py
@@ -272,7 +272,7 @@ class TestL3fwdacl(TestCase):
         inst = self.tester.tcpdump_sniff_packets(rx_interface, filters=filters)
         pkt = packet.Packet()
         pkt.append_pkt(ethernet_str)
-        pkt.send_pkt(crb=self.tester, tx_port=tx_interface)
+        pkt.send_pkt(crb=self.tester, tx_port=tx_interface, timeout=30)
         out = self.remove_dhcp_from_revpackets(inst)
         return len(out)
 
@@ -302,7 +302,7 @@ class TestL3fwdacl(TestCase):
         inst = self.tester.tcpdump_sniff_packets(rx_interface, filters=fil)
         pkt = packet.Packet()
         pkt.append_pkt(ethernet_str)
-        pkt.send_pkt(crb=self.tester, tx_port=tx_interface)
+        pkt.send_pkt(crb=self.tester, tx_port=tx_interface, timeout=30)
 
         out = self.remove_dhcp_from_revpackets(inst)
         return len(out)
@@ -320,7 +320,7 @@ class TestL3fwdacl(TestCase):
         inst = self.tester.tcpdump_sniff_packets(rx_interface, filters=filters)
         pkt = packet.Packet()
         pkt.append_pkt(etherStr)
-        pkt.send_pkt(crb=self.tester, tx_port=tx_interface)
+        pkt.send_pkt(crb=self.tester, tx_port=tx_interface, timeout=30)
         out = self.remove_dhcp_from_revpackets(inst)
         return len(out)
 
@@ -336,7 +336,7 @@ class TestL3fwdacl(TestCase):
         inst = self.tester.tcpdump_sniff_packets(rx_interface, filters=fil)
         pkt = packet.Packet()
         pkt.append_pkt(etherStr)
-        pkt.send_pkt(crb=self.tester, tx_port=tx_interface)
+        pkt.send_pkt(crb=self.tester, tx_port=tx_interface, timeout=30)
 
         out = self.remove_dhcp_from_revpackets(inst)
         return len(out)
--
2.17.2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestL3fwdacl.log
Type: application/octet-stream
Size: 471018 bytes
Desc: TestL3fwdacl.log
URL: <http://mails.dpdk.org/archives/dts/attachments/20191023/d4cd595b/attachment.obj>


More information about the dts mailing list