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 B0078A0487 for ; Wed, 3 Jul 2019 07:42:12 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A368844C3; Wed, 3 Jul 2019 07:42:12 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 9FED31BE0 for ; Wed, 3 Jul 2019 07:42:10 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Jul 2019 22:42:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,446,1557212400"; d="scan'208";a="154648153" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga007.jf.intel.com with ESMTP; 02 Jul 2019 22:42:09 -0700 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 2 Jul 2019 22:42:08 -0700 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 2 Jul 2019 22:42:08 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Tue, 2 Jul 2019 22:42:08 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.134]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.109]) with mapi id 14.03.0439.000; Wed, 3 Jul 2019 13:42:07 +0800 From: "Tu, Lijuan" To: "Mo, YufengX" , "dts@dpdk.org" CC: "Mo, YufengX" Thread-Topic: [dts] [PATCH V1]tests/external_memory: fix wrong output message Thread-Index: AQHVMLdQLv1USsU7SUOHqydFgggeHKa4YqQA Date: Wed, 3 Jul 2019 05:42:06 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BAD912A@SHSMSX101.ccr.corp.intel.com> References: <1562055505-176235-1-git-send-email-yufengx.mo@intel.com> <1562055505-176235-2-git-send-email-yufengx.mo@intel.com> In-Reply-To: <1562055505-176235-2-git-send-email-yufengx.mo@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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNTI5NzhiMGMtNTI4MS00MTM0LThhM2ItM2IxYmFjNDMyZjZkIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoickVBMUlHcUdlXC9CMWFIS0JrMXY0UXRFakFoUDNZdFNCaUwrV3hkYjcxOGVoSkt6VEpvcTNsM3RXXC8rbDV6NWRGIn0= 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/external_memory: fix wrong output message 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 yufengmx > Sent: Tuesday, July 2, 2019 4:18 PM > To: dts@dpdk.org > Cc: Mo, YufengX > Subject: [dts] [PATCH V1]tests/external_memory: fix wrong output message >=20 >=20 > fix wrong output message format in verifier_result method. > remove un-used string lib import. >=20 > Signed-off-by: yufengmx > --- > tests/TestSuite_external_memory.py | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) >=20 > diff --git a/tests/TestSuite_external_memory.py > b/tests/TestSuite_external_memory.py > index dd3c121..9a75427 100644 > --- a/tests/TestSuite_external_memory.py > +++ b/tests/TestSuite_external_memory.py > @@ -35,7 +35,6 @@ DPDK Test suite. > Test external memory. > """ >=20 > -import string > import time > import re > import utils > @@ -136,7 +135,7 @@ class TestExternalMemory(TestCase): > p =3D re.compile(r'\d+') > result =3D p.findall(out) > amount =3D 20 * len(self.dut_ports) > - self.verify(str(amount) in result, "Wrong: can't get <%s> packag= e") > + self.verify(str(amount) in result, "Wrong: can't get <%d> packag= e" % > amount) >=20 > self.dut.send_expect("quit", "#", 10) >=20 > -- > 1.9.3