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 B0D57A0487 for ; Wed, 3 Jul 2019 03:25:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 748B65587; Wed, 3 Jul 2019 03:25:09 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 7788944C3 for ; Wed, 3 Jul 2019 03:25:07 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Jul 2019 18:25:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,445,1557212400"; d="scan'208";a="166373014" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga003.jf.intel.com with ESMTP; 02 Jul 2019 18:25:06 -0700 Received: from fmsmsx126.amr.corp.intel.com (10.18.125.43) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 2 Jul 2019 18:25:05 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX126.amr.corp.intel.com (10.18.125.43) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 2 Jul 2019 18:25:05 -0700 Received: from shsmsx105.ccr.corp.intel.com ([169.254.11.232]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.110]) with mapi id 14.03.0439.000; Wed, 3 Jul 2019 09:25:04 +0800 From: "Zhang, Yuwei1" To: "Mo, YufengX" , "dts@dpdk.org" CC: "Mo, YufengX" Thread-Topic: [dts] [PATCH V1]tests/external_memory: fix wrong output message Thread-Index: AQHVMLdQGndND0kNL0qF6mmzhIFcPqa4GrIw Date: Wed, 3 Jul 2019 01:25:03 +0000 Message-ID: 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: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiODc1ZmRmNzEtYmM2Ni00MzI4LWIyNTYtMzljMTMwNDAzOGI2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoidUV4VEUrWWhrYXU2MXppa05kR1F1VkNEaXlVYUkwbU1zNlFPWDc5SW9aemg5YkRzVFJ4QXBXb0p5b3ZxMTZrMSJ9 dlp-product: dlpe-windows dlp-version: 11.0.600.7 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 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" Acked-by: Yuwei Zhang -----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 fix wrong output message format in verifier_result method. remove un-used string lib import. Signed-off-by: yufengmx --- tests/TestSuite_external_memory.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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> package"= ) + self.verify(str(amount) in result, "Wrong: can't get <%d> package"= % amount) =20 self.dut.send_expect("quit", "#", 10) =20 --=20 1.9.3