From: "Tu, Lijuan" <lijuan.tu@intel.com>
To: "Xie, WeiX" <weix.xie@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Xie, WeiX" <weix.xie@intel.com>
Subject: Re: [dts] [PATCH V1] tests/etag:etag set insertion off cmd fixed
Date: Thu, 23 Apr 2020 05:42:52 +0000 [thread overview]
Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC0F0F5@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <1587468279-308763-1-git-send-email-weix.xie@intel.com>
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
prev parent reply other threads:[~2020-04-23 5:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-21 11:24 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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8CE3E05A3F976642AAB0F4675D0AD20E0BC0F0F5@SHSMSX101.ccr.corp.intel.com \
--to=lijuan.tu@intel.com \
--cc=dts@dpdk.org \
--cc=weix.xie@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).