test suite reviews and discussions
 help / color / mirror / Atom feed
From: yufengmx <yufengx.mo@intel.com>
To: dts@dpdk.org
Cc: yufengmx <yufengx.mo@intel.com>
Subject: [dts] [PATCH V1]tests/external_memory: fix wrong output message
Date: Tue,  2 Jul 2019 16:18:25 +0800	[thread overview]
Message-ID: <1562055505-176235-2-git-send-email-yufengx.mo@intel.com> (raw)
In-Reply-To: <1562055505-176235-1-git-send-email-yufengx.mo@intel.com>


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-02  8:42 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 ` yufengmx [this message]
2019-07-03  1:25   ` [dts] [PATCH V1]tests/external_memory: fix wrong output message Zhang, Yuwei1
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=1562055505-176235-2-git-send-email-yufengx.mo@intel.com \
    --to=yufengx.mo@intel.com \
    --cc=dts@dpdk.org \
    /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).