[dts] [PATCH V1]tests/keep_alive: fix wrong output message

yufengmx yufengx.mo at intel.com
Tue Jul 2 10:20:34 CEST 2019


fix wrong output message format in test case test_keep_alive.

Signed-off-by: yufengmx <yufengx.mo at 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



More information about the dts mailing list