From 5ffdab83020c57414e3850b0195c5e1fb47bb545 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Bida?= <85344032+canisLupus1313@users.noreply.github.com> Date: Fri, 16 Jun 2023 19:12:44 +0200 Subject: [PATCH] [thci] revert spellcheck in THCI method names (#9175) Reverting name change intialize -> initalize. To fix thread harness issues. --- .code-spell-ignore | 1 + tools/harness-thci/OpenThread.py | 4 ++-- tools/harness-thci/OpenThread_WpanCtl.py | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.code-spell-ignore b/.code-spell-ignore index 0132a2c6d..c3c1a3a08 100644 --- a/.code-spell-ignore +++ b/.code-spell-ignore @@ -11,6 +11,7 @@ apending asender asent ect +intialize nd ot shashes diff --git a/tools/harness-thci/OpenThread.py b/tools/harness-thci/OpenThread.py index 1e4edbb37..7bff870fa 100644 --- a/tools/harness-thci/OpenThread.py +++ b/tools/harness-thci/OpenThread.py @@ -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): @@ -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' diff --git a/tools/harness-thci/OpenThread_WpanCtl.py b/tools/harness-thci/OpenThread_WpanCtl.py index 1d41fe2ab..81ce61610 100644 --- a/tools/harness-thci/OpenThread_WpanCtl.py +++ b/tools/harness-thci/OpenThread_WpanCtl.py @@ -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)) @@ -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: