aboutsummaryrefslogtreecommitdiff
path: root/test/py/u_boot_console_base.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-02-11 13:23:23 -0700
committerTom Rini <trini@konsulko.com>2022-03-02 10:28:12 -0500
commit9e0077796faa917650fe8831009bbed1090286e6 (patch)
tree023ac2de40da59e1a91aa3f30a28cfd6ad20f758 /test/py/u_boot_console_base.py
parent68a0b7156a73ca401b409dab7baa410c42cdccfd (diff)
downloadu-boot-9e0077796faa917650fe8831009bbed1090286e6.zip
u-boot-9e0077796faa917650fe8831009bbed1090286e6.tar.gz
u-boot-9e0077796faa917650fe8831009bbed1090286e6.tar.bz2
test: Correct pylint errors
Fix pylint errors in all test. This requires adding a get_spawn() method to the ConsoleBase base, so that its subclass is happy. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/py/u_boot_console_base.py')
-rw-r--r--test/py/u_boot_console_base.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/py/u_boot_console_base.py b/test/py/u_boot_console_base.py
index 3938ec1..58ec859 100644
--- a/test/py/u_boot_console_base.py
+++ b/test/py/u_boot_console_base.py
@@ -115,6 +115,14 @@ class ConsoleBase(object):
self.at_prompt = False
self.at_prompt_logevt = None
+ def get_spawn(self):
+ # This is not called, ssubclass must define this.
+ # Return a value to avoid:
+ # u_boot_console_base.py:348:12: E1128: Assigning result of a function
+ # call, where the function returns None (assignment-from-none)
+ return u_boot_spawn.Spawn([])
+
+
def eval_bad_patterns(self):
self.bad_patterns = [pat[PAT_RE] for pat in bad_pattern_defs \
if self.disable_check_count[pat[PAT_ID]] == 0]