From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id BD126A0597; Tue, 21 Apr 2020 13:30:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8B0811D602; Tue, 21 Apr 2020 13:30:54 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id F25131D5E1 for ; Tue, 21 Apr 2020 13:30:52 +0200 (CEST) IronPort-SDR: VUBwTl1PSmVkX04a8SkUAhyXGxXsTxBtUphmRbQwCOcVSaGTc4npYzBqsUq/EpLOXYEAaUSDzN nf/fn6GXQ4SQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Apr 2020 04:30:51 -0700 IronPort-SDR: l4mW8qYLwZuKzkBWYgeZOzRbNI37eCQ/3Rz1N0J4kvVSbkhW4bpSCyADDVLomZu9F/UOn1Cg3t 5Se1VhdF37/Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,410,1580803200"; d="scan'208";a="290429074" Received: from unknown (HELO xqm-virtio_tester.sh.intel.com) ([10.240.183.52]) by fmsmga002.fm.intel.com with ESMTP; 21 Apr 2020 04:30:49 -0700 From: "Xie,WeiX" To: dts@dpdk.org Cc: "Xie,WeiX" Date: Tue, 21 Apr 2020 19:24:39 +0800 Message-Id: <1587468279-308763-1-git-send-email-weix.xie@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1] tests/etag:etag set insertion off cmd fixed X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" From: "Xie,WeiX" Signed-off-by: Xie,WeiX --- 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