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/keep_alive: fix wrong output message
Date: Tue,  2 Jul 2019 16:20:34 +0800	[thread overview]
Message-ID: <1562055634-176278-2-git-send-email-yufengx.mo@intel.com> (raw)
In-Reply-To: <1562055634-176278-1-git-send-email-yufengx.mo@intel.com>


fix wrong output message format in test case test_keep_alive.

Signed-off-by: yufengmx <yufengx.mo@intel.com>
---
 tests/TestSuite_keep_alive.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/TestSuite_keep_alive.py b/tests/TestSuite_keep_alive.py
index e29ea8b..d9fc9b2 100644
--- a/tests/TestSuite_keep_alive.py
+++ b/tests/TestSuite_keep_alive.py
@@ -79,7 +79,7 @@ class TestKeepAlive(TestCase):
         p = re.compile(r'\d+')
         result = p.findall(out)
         amount = 2000 * 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)
          
     def scapy_send_packet(self,nu):
         """
-- 
1.9.3


  reply	other threads:[~2019-07-02  8:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-02  8:20 yufengmx
2019-07-02  8:20 ` yufengmx [this message]
     [not found]   ` <B8B15C44A3F2C044966E545C7B7371153E811B8F@shsmsx102.ccr.corp.intel.com>
2019-07-03  1:30     ` Wan, Zhe
2019-07-03  5:41   ` Tu, Lijuan

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=1562055634-176278-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).