[dts] [PATCH V1] tests/TestSuite_vm_hotplug:Optimize the tcpdump command

Yao, BingX Y bingx.y.yao at intel.com
Fri Sep 27 09:52:06 CEST 2019


Tested-by: Yao, BingX Y <bingx.y.yao at intel.com>

-----Original Message-----
From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of zhang,yan
Sent: Friday, September 27, 2019 3:27 PM
To: dts at dpdk.org
Cc: Zhang, YanX A <yanx.a.zhang at intel.com>
Subject: [dts] [PATCH V1] tests/TestSuite_vm_hotplug:Optimize the tcpdump command

Optimize the tcpdump command to improve script stability.

Signed-off-by: zhang,yan <yanx.a.zhang at intel.com>
---
 tests/TestSuite_vm_hotplug.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/TestSuite_vm_hotplug.py b/tests/TestSuite_vm_hotplug.py index 87edad6..d0c75ac 100644
--- a/tests/TestSuite_vm_hotplug.py
+++ b/tests/TestSuite_vm_hotplug.py
@@ -232,7 +232,7 @@ class TestVmHotplug(TestCase):
     def start_tcpdump(self, iface_list):
         for iface in iface_list:
             self.tester.send_expect("rm -rf tcpdump%s.out" % iface, "#")
-            self.tester.send_expect("tcpdump -i %s 2>tcpdump%s.out &" % (iface, iface), "#")
+            self.tester.send_expect("tcpdump -c 1500 -i %s -vv -n 
+ 2>tcpdump%s.out &" % (iface, iface), "#")
         time.sleep(1)
 
     def get_tcpdump_package(self, iface_list):
--
2.17.2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestVmHotplug.log
Type: application/octet-stream
Size: 893190 bytes
Desc: TestVmHotplug.log
URL: <http://mails.dpdk.org/archives/dts/attachments/20190927/38f86591/attachment.obj>


More information about the dts mailing list