test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Zhang, Yuwei1" <yuwei1.zhang@intel.com>
To: "Mo, YufengX" <yufengx.mo@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Mo, YufengX" <yufengx.mo@intel.com>
Subject: Re: [dts] [PATCH V1]tests/external_memory: fix wrong output message
Date: Wed, 3 Jul 2019 01:25:03 +0000	[thread overview]
Message-ID: <EC241D52C34C9A4BA57BFACAB76C70A43CD8B407@SHSMSX105.ccr.corp.intel.com> (raw)
In-Reply-To: <1562055505-176235-2-git-send-email-yufengx.mo@intel.com>

Acked-by: Yuwei Zhang <yuwei1.zhang@intel.com>

-----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 <yufengx.mo@intel.com>
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 <yufengx.mo@intel.com>
---
 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


  reply	other threads:[~2019-07-03  1:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-02  8:18 [dts] [PATCH V1]tests/external_memory: fix wrong output message and remove un-used lib yufengmx
2019-07-02  8:18 ` [dts] [PATCH V1]tests/external_memory: fix wrong output message yufengmx
2019-07-03  1:25   ` Zhang, Yuwei1 [this message]
2019-07-03  5:42   ` Tu, Lijuan
2019-07-03  1:26 ` [dts] [PATCH V1]tests/external_memory: fix wrong output message and remove un-used lib Zhang, Yuwei1

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=EC241D52C34C9A4BA57BFACAB76C70A43CD8B407@SHSMSX105.ccr.corp.intel.com \
    --to=yuwei1.zhang@intel.com \
    --cc=dts@dpdk.org \
    --cc=yufengx.mo@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).