* [dts] [PATCH V2]short_live: enhance script for different envs
@ 2020-04-17 6:16 Xiao Qimai
2020-04-17 6:50 ` Zhao, XinfengX
0 siblings, 1 reply; 2+ messages in thread
From: Xiao Qimai @ 2020-04-17 6:16 UTC (permalink / raw)
To: dts; +Cc: Xiao Qimai
*. enhance script for different envs
Signed-off-by: Xiao Qimai <qimaix.xiao@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..5a91420 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].strip()
+ if res != '0':
time.sleep(1)
delay = delay + 1
else:
--
1.8.3.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dts] [PATCH V2]short_live: enhance script for different envs
2020-04-17 6:16 [dts] [PATCH V2]short_live: enhance script for different envs Xiao Qimai
@ 2020-04-17 6:50 ` Zhao, XinfengX
0 siblings, 0 replies; 2+ messages in thread
From: Zhao, XinfengX @ 2020-04-17 6:50 UTC (permalink / raw)
To: dts; +Cc: Xiao, QimaiX
Tested-by: Zhao, Xinfeng<xinfengx.zhao@intel.com>
-----Original Message-----
From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xiao Qimai
Sent: Friday, April 17, 2020 2:16 PM
To: dts@dpdk.org
Cc: Xiao, QimaiX <qimaix.xiao@intel.com>
Subject: [dts] [PATCH V2]short_live: enhance script for different envs
*. enhance script for different envs
Signed-off-by: Xiao Qimai <qimaix.xiao@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..5a91420 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].strip()
+ if res != '0':
time.sleep(1)
delay = delay + 1
else:
--
1.8.3.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-04-17 6:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-17 6:16 [dts] [PATCH V2]short_live: enhance script for different envs Xiao Qimai
2020-04-17 6:50 ` Zhao, XinfengX
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).