Skip to content

Commit

Permalink
[thci] revert spellcheck in THCI method names (#9175)
Browse files Browse the repository at this point in the history
Reverting name change intialize -> initalize. To fix thread harness
issues.
  • Loading branch information
canisLupus1313 authored Jun 16, 2023
1 parent 6d55738 commit 5ffdab8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .code-spell-ignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ apending
asender
asent
ect
intialize
nd
ot
shashes
Expand Down
4 changes: 2 additions & 2 deletions tools/harness-thci/OpenThread.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def __init__(self, **kwargs):
**kwargs: Arbitrary keyword arguments
Includes 'EUI' and 'SerialPort'
"""
self.initialize(kwargs)
self.intialize(kwargs)

@abstractmethod
def _connect(self):
Expand Down Expand Up @@ -399,7 +399,7 @@ def sleep(self, duration):
time.sleep(duration)

@API
def initialize(self, params):
def intialize(self, params):
"""initialize the serial port with baudrate, timeout parameters"""
self.mac = params.get('EUI')
self.backboneNetif = params.get('Param8') or 'eth0'
Expand Down
4 changes: 2 additions & 2 deletions tools/harness-thci/OpenThread_WpanCtl.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __init__(self, **kwargs):
self.password = kwargs.get('Param7').strip() if kwargs.get('Param7') else None
else:
self.port = kwargs.get('SerialPort')
self.initialize()
self.intialize()
except Exception as e:
ModuleHelper.WriteIntoDebugLogger('initialize() Error: ' + str(e))

Expand Down Expand Up @@ -794,7 +794,7 @@ def closeConnection(self):
except Exception as e:
ModuleHelper.WriteIntoDebugLogger('closeConnection() Error: ' + str(e))

def initialize(self):
def intialize(self):
"""initialize the serial port with baudrate, timeout parameters"""
print('%s call intialize' % self.port)
try:
Expand Down

0 comments on commit 5ffdab8

Please sign in to comment.