test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Zhao, XinfengX" <xinfengx.zhao@intel.com>
To: "Xie, WeiX" <weix.xie@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Subject: Re: [dts] [PATCH V1] tests/etag:etag set insertion off cmd fixed
Date: Wed, 22 Apr 2020 02:11:36 +0000	[thread overview]
Message-ID: <158ee07c395f4eab8fcb17273c707546@intel.com> (raw)
In-Reply-To: <6FD6A7610D20924F885A4ECF34E8AC91045E26CA@CDSMSX102.ccr.corp.intel.com>

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


  parent reply	other threads:[~2020-04-22  2:11 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 [this message]
2020-04-23  5:42 ` Tu, Lijuan

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=158ee07c395f4eab8fcb17273c707546@intel.com \
    --to=xinfengx.zhao@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).