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 54FDFA2EFC for ; Fri, 20 Sep 2019 08:22:12 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4C4661EA16; Fri, 20 Sep 2019 08:22:12 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 559471E99A for ; Fri, 20 Sep 2019 08:22:10 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Sep 2019 23:22:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,527,1559545200"; d="scan'208";a="271459463" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga001.jf.intel.com with ESMTP; 19 Sep 2019 23:22:08 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 19 Sep 2019 23:22:06 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.92]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.132]) with mapi id 14.03.0439.000; Fri, 20 Sep 2019 14:22:05 +0800 From: "Tu, Lijuan" To: "Zhang, YanX A" , "dts@dpdk.org" CC: "Zhang, YanX A" Thread-Topic: [dts] [PATCH V1] tests/TestSuite_iavf:Modify syntax error Thread-Index: AQHVaUFLfQhhiJwvBUCfFRBe9d1MLqc0JOkg Date: Fri, 20 Sep 2019 06:22:04 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB24B64@SHSMSX101.ccr.corp.intel.com> References: <1568275948-85614-1-git-send-email-yanx.a.zhang@intel.com> In-Reply-To: <1568275948-85614-1-git-send-email-yanx.a.zhang@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.2.0.6 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZThkMTM3M2QtMGNhNy00YmI1LTg4NmEtYTgyZWIxZGUwYzRhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoib2F2MkhwNTBmMWpGYnhudXpHWnVXMjRuS2xNTGlWcnVycmE2dkN3cGozZXJvdWRqUGVmNGNSNzBIWmdXNzNpSiJ9 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] tests/TestSuite_iavf:Modify syntax error 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 zhang,yan > Sent: Thursday, September 12, 2019 4:12 PM > To: dts@dpdk.org > Cc: Zhang, YanX A > Subject: [dts] [PATCH V1] tests/TestSuite_iavf:Modify syntax error >=20 > Modify syntax error. >=20 > Signed-off-by: zhang,yan > --- > tests/TestSuite_iavf.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/tests/TestSuite_iavf.py b/tests/TestSuite_iavf.py index > 1ee5f77..9395555 100644 > --- a/tests/TestSuite_iavf.py > +++ b/tests/TestSuite_iavf.py > @@ -588,7 +588,7 @@ class TestIavf(TestCase): > self.tester.scapy_execute() > rec_pkt =3D self.tester.load_tcpdump_sniff_packets(inst) > # collect checksum values for received packet > - chksum =3D > rec_pkt[0].pktgen.pkt.s("%IP.chksum%;%TCP.chksum%;%UDP.chksum%;%SCTP > .chksum%").split(";") > + chksum =3D > + > rec_pkt[0].pktgen.pkt.sprintf("%IP.chksum%;%TCP.chksum%;%UDP.chksum%;% > + SCTP.chksum%").split(";") > chksum =3D list(set(chksum)) > chksum.remove("??") > corrected_checksum_values[packet] =3D chksum > -- > 2.17.2