[dts] [PATCH V1] tests/netmap_compat: fix netmap compat failed

lu,peipei peipeix.lu at intel.com
Tue Jan 30 07:50:45 CET 2018


Before scapy send pachket need to time sleep. 

Signed-off-by: lu,peipei <peipeix.lu at intel.com>
---
 tests/TestSuite_netmap_compat.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_netmap_compat.py b/tests/TestSuite_netmap_compat.py
index 5225a27..9d14163 100644
--- a/tests/TestSuite_netmap_compat.py
+++ b/tests/TestSuite_netmap_compat.py
@@ -81,7 +81,7 @@ class TestNetmapCompat(TestCase):
         self.rxItf = self.tester.get_interface(self.tester.get_local_port(self.dut_ports[0]))
 
         self.inst = sniff_packets(self.rxItf)
-
+        time.sleep(1)
         self.scapy_send_packet()
 
         out = self.get_tcpdump_package()
@@ -99,7 +99,7 @@ class TestNetmapCompat(TestCase):
        
         self.rxItf = self.tester.get_interface(self.tester.get_local_port(self.dut_ports[1]))
         self.inst = sniff_packets(self.rxItf)
-
+        time.sleep(1)
         self.scapy_send_packet()
 
         out = self.get_tcpdump_package()
-- 
1.9.3



More information about the dts mailing list