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

zhuwenhui wenhuix.zhu at intel.com
Wed Apr 24 03:57:51 CEST 2019


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