From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 4A9EEA0096 for ; Wed, 5 Jun 2019 07:28:51 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 35B49559A; Wed, 5 Jun 2019 07:28:51 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 331452C15 for ; Wed, 5 Jun 2019 07:28:49 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Jun 2019 22:28:48 -0700 X-ExtLoop1: 1 Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga007.fm.intel.com with ESMTP; 04 Jun 2019 22:28:48 -0700 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 4 Jun 2019 22:28:47 -0700 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 4 Jun 2019 22:28:47 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.10]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.188]) with mapi id 14.03.0415.000; Wed, 5 Jun 2019 13:28:46 +0800 From: "Tu, Lijuan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1] fix sedcmd to ensure if sentence has process_pkts included Thread-Index: AQHVGrPHUqqbN4vwIEKtRNL5aOsauqaMiaYQ Date: Wed, 5 Jun 2019 05:28:45 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BAA1997@SHSMSX101.ccr.corp.intel.com> References: <1559638979-134992-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1559638979-134992-1-git-send-email-qimaix.xiao@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOWFmMDUzZmItZWQzYi00NzYzLThjMTEtYzhlMmRlNGE5YTBjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiS1pObmRJN2l3MEZubjNWWjlpb3JcL3FXcWUrVG1obmFQWTlFdGNRTU9zQ2NnY01oaFdjeFZjcE1uOWdrVm5qRDgifQ== 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 V1] fix sedcmd to ensure if sentence has process_pkts included 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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xiao,qimai > Sent: Tuesday, June 4, 2019 5:03 PM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH V1] fix sedcmd to ensure if sentence has process_pk= ts > included >=20 > due to no indents in C program, add {} to make sure if sentence include > function process_pkts >=20 > Signed-off-by: xiao,qimai > --- > tests/TestSuite_inline_ipsec.py | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/tests/TestSuite_inline_ipsec.py b/tests/TestSuite_inline_ips= ec.py > index d67bcce..57552c2 100644 > --- a/tests/TestSuite_inline_ipsec.py > +++ b/tests/TestSuite_inline_ipsec.py > @@ -86,7 +86,7 @@ class TestInlineIpsec(TestCase): >=20 > self.path =3D "./examples/ipsec-secgw/build/ipsec-secgw" > # add print code in IPSEC app > - sedcmd =3D r"""sed -i -e '/process_pkts(qconf, pkts, nb_rx, > portid);/i\\t\t\t\tprintf("[debug]receive %hhu packet in > rxqueueid=3D%hhu\\n",nb_rx, queueid);' examples/ipsec-secgw/ipsec- > secgw.c""" > + sedcmd =3D r"""sed -i -e 's/if (nb_rx > 0)/if (nb_rx > 0) {/g' -= e '/\/\* > dequeue and process completed crypto-ops \*\//i\\t\t\t}' -e > '/process_pkts(qconf, pkts, nb_rx, > portid);/i\\t\t\t\tprintf("[debug]receive %hhu packet in > rxqueueid=3D%hhu\\n",nb_rx, queueid);' examples/ipsec-secgw/ipsec- > secgw.c""" > self.dut.send_expect(sedcmd, "#", 60) >=20 > # build sample app > @@ -216,6 +216,7 @@ class TestInlineIpsec(TestCase): > sa_gcm =3D r"sa_gcm=3DSecurityAssociation(ESP,spi=3D%s,crypt_alg= o=3D'AES- > GCM',crypt_key=3D'\x2b\x7e\x15\x16\x28\xae\xd2\xa6\xab\xf7\x15\x88\x09\x > cf\x4f\x3d\xde\xad\xbe\xef',auth_algo=3D'NULL',auth_key=3DNone,tunnel_hea= de > r=3DIP(src=3D'172.16.1.5',dst=3D'172.16.2.5'))" % receive_spi >=20 > session_receive.send_expect("scapy", ">>>", 10) > + time.sleep(1) > session_receive.send_expect( > "pkts=3Dsniff(iface=3D'%s',count=3D1,timeout=3D45)" % rxItf,= "", 10) >=20 > -- > 2.17.1