[dts] [PATCH V1] tests/change_linkspeed precise judgment condition

Tu, Lijuan lijuan.tu at intel.com
Mon May 6 03:29:59 CEST 2019


Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of zhuwenhui
> Sent: Wednesday, April 24, 2019 9:58 AM
> To: dts at dpdk.org
> Cc: Zhu, WenhuiX <wenhuix.zhu at intel.com>
> Subject: [dts] [PATCH V1] tests/change_linkspeed precise judgment condition
> 
> Make the judgment conditions more precise
> 
> Signed-off-by: zhuwenhui <wenhuix.zhu at intel.com>
> ---
>  tests/TestSuite_shutdown_api.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/TestSuite_shutdown_api.py
> b/tests/TestSuite_shutdown_api.py index 9f3f03f..d31392d 100644
> --- a/tests/TestSuite_shutdown_api.py
> +++ b/tests/TestSuite_shutdown_api.py
> @@ -334,7 +334,7 @@ class TestShutdownApi(TestCase):
>              for port in self.ports:
>                  out = self.tester.send_expect(
>                      "ethtool %s" %
> self.tester.get_interface(self.tester.get_local_port(port)), "# ")
> -                self.verify("Speed: %s" % config[0] in out,
> +                self.verify("Speed: %sMb/s" % config[0] in out,
>                              "Wrong speed reported by the self.tester.")
>                  self.verify("Duplex: %s" % config[1] in out,
>                              "Wrong link type reported by the self.tester.")
> --
> 2.17.2



More information about the dts mailing list