[dts] [PATCH V1]short_live: enhance script for misc packets and system interfere
Zhao, XinfengX
xinfengx.zhao at intel.com
Fri Apr 17 08:40:03 CEST 2020
Discard this patch
-----Original Message-----
From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Xiao Qimai
Sent: Tuesday, April 14, 2020 7:38 PM
To: dts at dpdk.org
Cc: Xiao, QimaiX <qimaix.xiao at intel.com>
Subject: [dts] [PATCH V1]short_live: enhance script for misc packets and system interfere
*. case script enhancement
Signed-off-by: Xiao Qimai <qimaix.xiao at intel.com>
---
tests/TestSuite_short_live.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/TestSuite_short_live.py b/tests/TestSuite_short_live.py index 50c4db1..dffe4af 100644
--- a/tests/TestSuite_short_live.py
+++ b/tests/TestSuite_short_live.py
@@ -102,7 +102,7 @@ class TestShortLiveApp(TestCase):
if (txPort == rxPort):
count = 2
- filter_list = [{'layer': 'ether', 'config': {'type': 'not IPv6'}}]
+ filter_list = [{'layer': 'ether', 'config': {'type': 'not
+ IPv6'}}, {'layer': 'userdefined', 'config': {'pcap-filter': 'not
+ udp'}}]
inst = self.tester.tcpdump_sniff_packets(rxitf, count=count,filters=filter_list)
pktlen = pktSize - 14
@@ -124,7 +124,9 @@ class TestShortLiveApp(TestCase):
delay = 0
while delay < delay_max:
process = self.dut.send_expect("lsof %s | wc -l" % process_file, "#")
- if process != '0':
+ # as FUSE filesystem may not be accessible for root, so the output might include some warning info
+ res = process.splitlines()[-1]
+ if res != '0':
time.sleep(1)
delay = delay + 1
else:
--
1.8.3.1
More information about the dts
mailing list