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 8BDCDA04A3; Mon, 4 Nov 2019 06:34:21 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8152158C4; Mon, 4 Nov 2019 06:34:21 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id BD5F0493D for ; Mon, 4 Nov 2019 06:34:19 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Nov 2019 21:34:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,266,1569308400"; d="scan'208";a="212241760" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga001.fm.intel.com with ESMTP; 03 Nov 2019 21:34:18 -0800 Received: from fmsmsx120.amr.corp.intel.com (10.18.124.208) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 3 Nov 2019 21:34:18 -0800 Received: from shsmsx153.ccr.corp.intel.com (10.239.6.53) by fmsmsx120.amr.corp.intel.com (10.18.124.208) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 3 Nov 2019 21:34:18 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.127]) by SHSMSX153.ccr.corp.intel.com ([169.254.12.215]) with mapi id 14.03.0439.000; Mon, 4 Nov 2019 13:34:16 +0800 From: "Chen, Zhaoyan" To: "Ma, LihongX" , "dts@dpdk.org" CC: "Chen, Zhaoyan" Thread-Topic: [dts] [PATCH V2 3/3][nsh] tests/uni_pkt: update code Thread-Index: AQHVgxdn8VDFVwRDxEu/zRftHl2DOadb/ogAgB6eKcA= Date: Mon, 4 Nov 2019 05:34:15 +0000 Message-ID: <9DEEADBC57E43F4DA73B571777FECECA41E0F1C2@SHSMSX104.ccr.corp.intel.com> References: <1571089742-7077-1-git-send-email-lihongx.ma@intel.com> <1571089742-7077-3-git-send-email-lihongx.ma@intel.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMzE1MmZjNzQtNGFkMC00MTg5LTljYmEtODFmNjVkYmU4MGJmIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiREtzVDRSc2dCYkZOTGxrZElvT3ZpN3lsaHU1djU5b3phUE5xNUhLR2lVXC9YaUJmUEg4VU92amwyXC9yUzJjbFo4In0= dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V2 3/3][nsh] tests/uni_pkt: update code 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" Acked-by: Chen, Zhaoyan Regards, Zhaoyan Chen > -----Original Message----- > From: dts On Behalf Of Ma, LihongX > Sent: Wednesday, October 16, 2019 10:00 AM > To: dts@dpdk.org > Subject: Re: [dts] [PATCH V2 3/3][nsh] tests/uni_pkt: update code >=20 > Tested-by:ma,lihong >=20 > -----Original Message----- > From: Ma, LihongX > Sent: Tuesday, October 15, 2019 5:49 AM > To: dts@dpdk.org > Cc: Ma, LihongX > Subject: [dts][PATCH V2 3/3][nsh] tests/uni_pkt: update code >=20 > Signed-off-by: lihong > --- > tests/TestSuite_uni_pkt.py | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) >=20 > diff --git a/tests/TestSuite_uni_pkt.py b/tests/TestSuite_uni_pkt.py inde= x > 0310e04..e6bd42b 100644 > --- a/tests/TestSuite_uni_pkt.py > +++ b/tests/TestSuite_uni_pkt.py > @@ -444,9 +444,8 @@ class TestUniPacket(TestCase): > } >=20 > for packet in nsh_packets: > - self.tester.scapy_foreground() > - self.tester.scapy_append("sendp([%s],iface=3D'%s')" % (nsh_p= ackets[packet], > self.tester_iface)) > - self.tester.scapy_execute() > + pk=3DPacket(nsh_packets[packet]) > + pk.send_pkt(self.tester, self.tester_iface) > out =3D self.dut.get_session_output(timeout=3D2) > self.verify(nsh_detect_message[packet] in out, "Packet Detec= tion Error > for : %s" % packet) > print utils.GREEN("Detected packet %s Successfully" % packet= ) > -- > 2.7.4