test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Xie,WeiX" <weix.xie@intel.com>
To: dts@dpdk.org
Cc: "Xie,WeiX" <weix.xie@intel.com>
Subject: [dts] [PATCH V1] tests/etag:etag set insertion off cmd fixed
Date: Tue, 21 Apr 2020 19:24:39 +0800	[thread overview]
Message-ID: <1587468279-308763-1-git-send-email-weix.xie@intel.com> (raw)

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


             reply	other threads:[~2020-04-21 11:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-21 11:24 Xie,WeiX [this message]
     [not found] ` <6FD6A7610D20924F885A4ECF34E8AC91045E26CA@CDSMSX102.ccr.corp.intel.com>
2020-04-22  2:11   ` Zhao, XinfengX
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=1587468279-308763-1-git-send-email-weix.xie@intel.com \
    --to=weix.xie@intel.com \
    --cc=dts@dpdk.org \
    /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).