* [dts] [PATCH V1] tests/etag:etag set insertion off cmd fixed
@ 2020-04-21 11:24 Xie,WeiX
[not found] ` <6FD6A7610D20924F885A4ECF34E8AC91045E26CA@CDSMSX102.ccr.corp.intel.com>
2020-04-23 5:42 ` Tu, Lijuan
0 siblings, 2 replies; 3+ messages in thread
From: Xie,WeiX @ 2020-04-21 11:24 UTC (permalink / raw)
To: dts; +Cc: Xie,WeiX
From: "Xie,WeiX" <weix.xie@intel.com>
Signed-off-by: Xie,WeiX <weix.xie@intel.com>
---
tests/TestSuite_etag.py | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/tests/TestSuite_etag.py b/tests/TestSuite_etag.py
index e095f82..f165c91 100644
--- a/tests/TestSuite_etag.py
+++ b/tests/TestSuite_etag.py
@@ -342,19 +342,19 @@ class TestEtag(TestCase):
self.check_packet_transmission(pkt_types)
time.sleep(1)
pkts = self.tester.load_tcpdump_sniff_packets(inst)
- self.host_testpmd.execute_cmd('E-tag set insertion off port-tag-id 1000 port 0 vf 0')
+ self.host_testpmd.execute_cmd('E-tag set insertion off port 0 vf 0')
# load sniff pcap file, check received packet's content
packetContentFile = "/tmp/packetContent.log"
- pcap_file = "/tmp/sniff_%s.pcap"%intf
- fp=open(packetContentFile,'w')
- backup_out=sys.stdout
- sys.stdout=fp
- pkts=rdpcap(pcap_file)
+ pcap_file = "/tmp/tester/sniff_%s.pcap" % intf
+ fp = open(packetContentFile, 'w')
+ backup_out = sys.stdout
+ sys.stdout = fp
+ pkts = rdpcap(pcap_file)
pkts.show()
fp.close()
- sys.stdout=backup_out
- fp=open(packetContentFile,'r')
+ sys.stdout = backup_out
+ fp = open(packetContentFile, 'r')
out = fp.read()
fp.close()
if self.printFlag:# debug output
--
1.8.3.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dts] [PATCH V1] tests/etag:etag set insertion off cmd fixed
[not found] ` <6FD6A7610D20924F885A4ECF34E8AC91045E26CA@CDSMSX102.ccr.corp.intel.com>
@ 2020-04-22 2:11 ` Zhao, XinfengX
0 siblings, 0 replies; 3+ messages in thread
From: Zhao, XinfengX @ 2020-04-22 2:11 UTC (permalink / raw)
To: Xie, WeiX, dts
Tested-by: Zhao, Xinfeng<xinfengx.zhao@intel.com>
-----Original Message-----
From: Xie, WeiX
Sent: Tuesday, April 21, 2020 7:33 PM
To: dts@dpdk.org
Cc: Zhao, XinfengX <xinfengx.zhao@intel.com>
Subject: RE: [dts][PATCH V1] tests/etag:etag set insertion off cmd fixed
Tested-by: Xie,WeiX < weix.xie@intel.com>
Regards,
Xie Wei
-----Original Message-----
From: Xie, WeiX
Sent: Tuesday, April 21, 2020 7:25 PM
To: dts@dpdk.org
Cc: Xie, WeiX <weix.xie@intel.com>
Subject: [dts][PATCH V1] tests/etag:etag set insertion off cmd fixed
From: "Xie,WeiX" <weix.xie@intel.com>
Signed-off-by: Xie,WeiX <weix.xie@intel.com>
---
tests/TestSuite_etag.py | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/tests/TestSuite_etag.py b/tests/TestSuite_etag.py index e095f82..f165c91 100644
--- a/tests/TestSuite_etag.py
+++ b/tests/TestSuite_etag.py
@@ -342,19 +342,19 @@ class TestEtag(TestCase):
self.check_packet_transmission(pkt_types)
time.sleep(1)
pkts = self.tester.load_tcpdump_sniff_packets(inst)
- self.host_testpmd.execute_cmd('E-tag set insertion off port-tag-id 1000 port 0 vf 0')
+ self.host_testpmd.execute_cmd('E-tag set insertion off port 0
+ vf 0')
# load sniff pcap file, check received packet's content
packetContentFile = "/tmp/packetContent.log"
- pcap_file = "/tmp/sniff_%s.pcap"%intf
- fp=open(packetContentFile,'w')
- backup_out=sys.stdout
- sys.stdout=fp
- pkts=rdpcap(pcap_file)
+ pcap_file = "/tmp/tester/sniff_%s.pcap" % intf
+ fp = open(packetContentFile, 'w')
+ backup_out = sys.stdout
+ sys.stdout = fp
+ pkts = rdpcap(pcap_file)
pkts.show()
fp.close()
- sys.stdout=backup_out
- fp=open(packetContentFile,'r')
+ sys.stdout = backup_out
+ fp = open(packetContentFile, 'r')
out = fp.read()
fp.close()
if self.printFlag:# debug output
--
1.8.3.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dts] [PATCH V1] tests/etag:etag set insertion off cmd fixed
2020-04-21 11:24 [dts] [PATCH V1] tests/etag:etag set insertion off cmd fixed Xie,WeiX
[not found] ` <6FD6A7610D20924F885A4ECF34E8AC91045E26CA@CDSMSX102.ccr.corp.intel.com>
@ 2020-04-23 5:42 ` Tu, Lijuan
1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2020-04-23 5:42 UTC (permalink / raw)
To: Xie, WeiX, dts; +Cc: Xie, WeiX
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xie,WeiX
> Sent: Tuesday, April 21, 2020 7:25 PM
> To: dts@dpdk.org
> Cc: Xie, WeiX <weix.xie@intel.com>
> Subject: [dts] [PATCH V1] tests/etag:etag set insertion off cmd fixed
>
> From: "Xie,WeiX" <weix.xie@intel.com>
>
>
> Signed-off-by: Xie,WeiX <weix.xie@intel.com>
> ---
> tests/TestSuite_etag.py | 16 ++++++++--------
> 1 file changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/tests/TestSuite_etag.py b/tests/TestSuite_etag.py index
> e095f82..f165c91 100644
> --- a/tests/TestSuite_etag.py
> +++ b/tests/TestSuite_etag.py
> @@ -342,19 +342,19 @@ class TestEtag(TestCase):
> self.check_packet_transmission(pkt_types)
> time.sleep(1)
> pkts = self.tester.load_tcpdump_sniff_packets(inst)
> - self.host_testpmd.execute_cmd('E-tag set insertion off port-tag-id 1000
> port 0 vf 0')
> + self.host_testpmd.execute_cmd('E-tag set insertion off port 0
> + vf 0')
>
> # load sniff pcap file, check received packet's content
> packetContentFile = "/tmp/packetContent.log"
> - pcap_file = "/tmp/sniff_%s.pcap"%intf
> - fp=open(packetContentFile,'w')
> - backup_out=sys.stdout
> - sys.stdout=fp
> - pkts=rdpcap(pcap_file)
> + pcap_file = "/tmp/tester/sniff_%s.pcap" % intf
> + fp = open(packetContentFile, 'w')
> + backup_out = sys.stdout
> + sys.stdout = fp
> + pkts = rdpcap(pcap_file)
> pkts.show()
> fp.close()
> - sys.stdout=backup_out
> - fp=open(packetContentFile,'r')
> + sys.stdout = backup_out
> + fp = open(packetContentFile, 'r')
> out = fp.read()
> fp.close()
> if self.printFlag:# debug output
> --
> 1.8.3.1
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-04-23 5:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-21 11:24 [dts] [PATCH V1] tests/etag:etag set insertion off cmd fixed Xie,WeiX
[not found] ` <6FD6A7610D20924F885A4ECF34E8AC91045E26CA@CDSMSX102.ccr.corp.intel.com>
2020-04-22 2:11 ` Zhao, XinfengX
2020-04-23 5:42 ` Tu, Lijuan
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).