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 83950A0487 for ; Tue, 2 Jul 2019 10:42:43 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7BFEE5B3C; Tue, 2 Jul 2019 10:42:43 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id D28E92BA5 for ; Tue, 2 Jul 2019 10:42:41 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Jul 2019 01:17:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,442,1557212400"; d="scan'208";a="362121038" Received: from itecstvdts01.sh.intel.com ([10.67.111.114]) by fmsmga005.fm.intel.com with ESMTP; 02 Jul 2019 01:17:15 -0700 From: yufengmx To: dts@dpdk.org Cc: yufengmx Date: Tue, 2 Jul 2019 16:18:25 +0800 Message-Id: <1562055505-176235-2-git-send-email-yufengx.mo@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1562055505-176235-1-git-send-email-yufengx.mo@intel.com> References: <1562055505-176235-1-git-send-email-yufengx.mo@intel.com> Subject: [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" 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. """ -import string import time import re import utils @@ -136,7 +135,7 @@ class TestExternalMemory(TestCase): p = re.compile(r'\d+') result = p.findall(out) amount = 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) self.dut.send_expect("quit", "#", 10) -- 1.9.3