test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] framework/pmd_output: fix typos
@ 2019-01-18 12:50 Rami Rosen
  0 siblings, 0 replies; only message in thread
From: Rami Rosen @ 2019-01-18 12:50 UTC (permalink / raw)
  To: dts; +Cc: Rami Rosen

Signed-off-by: Rami Rosen <ramirose@gmail.com>
---
 framework/pmd_output.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/framework/pmd_output.py b/framework/pmd_output.py
index 80005e5..9cc84bb 100644
--- a/framework/pmd_output.py
+++ b/framework/pmd_output.py
@@ -153,7 +153,7 @@ class PmdOutput():
 
     def get_port_connect_socket(self, port_id):
         """
-        Get the socket id which the specified port is connectting with.
+        Get the socket id which the specified port is connecting with.
         """
         return self.get_detail_from_port_info("Connect to socket: ", "\d+", port_id)
 
@@ -177,7 +177,7 @@ class PmdOutput():
 
     def get_port_link_duplex(self, port_id):
         """
-        Get the specified port link mode, duplex or siplex.
+        Get the specified port link mode, duplex or simplex.
         """
         return self.get_detail_from_port_info("Link duplex: ", "\S+", port_id)
 
@@ -199,16 +199,16 @@ class PmdOutput():
         so should used (tx_bytes - exp_bytes) % PROTOCOL_PACKET_SIZE['lldp']
         for check tx_bytes count right
         """
-        # error_flage is true means tx_bytes different with expect bytes
-        error_flage = 1
+        # error_flag is true means tx_bytes different with expect bytes
+        error_flag = 1
         for size in  PROTOCOL_PACKET_SIZE['lldp']:
-            error_flage = error_flage and  (tx_bytes - exp_bytes) % size
+            error_flag = error_flag and  (tx_bytes - exp_bytes) % size
 
-        return not error_flage
+        return not error_flag
 
     def get_port_vlan_offload(self, port_id):
         """
-        Function: get the port vlan settting info.
+        Function: get the port vlan setting info.
         return value:
             'strip':'on'
             'filter':'on'
-- 
2.19.2

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-01-18 12:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-18 12:50 [dts] [PATCH] framework/pmd_output: fix typos Rami Rosen

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).