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

Wan, Zhe zhe.wan at intel.com
Wed Jul 3 03:30:28 CEST 2019


Acked-by: Wan, Zhe <zhe.wan at intel.com>

> -----Original Message-----
> From: Mo, YufengX
> Sent: Tuesday, July 2, 2019 4:21 PM
> To: dts at dpdk.org
> Cc: Mo, YufengX <yufengx.mo at intel.com>
> Subject: [dts][PATCH V1]tests/keep_alive: fix wrong output message
> 
> 
> 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