[dts] [PATCH V1] tests/etag:etag set insertion off cmd fixed
Tu, Lijuan
lijuan.tu at intel.com
Thu Apr 23 07:42:52 CEST 2020
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Xie,WeiX
> Sent: Tuesday, April 21, 2020 7:25 PM
> To: dts at dpdk.org
> Cc: Xie, WeiX <weix.xie at intel.com>
> Subject: [dts] [PATCH V1] tests/etag:etag set insertion off cmd fixed
>
> From: "Xie,WeiX" <weix.xie at intel.com>
>
>
> Signed-off-by: Xie,WeiX <weix.xie at 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
More information about the dts
mailing list