diff options
author | Daniel Latypov <dlatypov@google.com> | 2022-05-09 22:49:09 +0200 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2022-05-16 21:22:36 +0200 |
commit | 0453f984a7b9458f0e469afb039f2841308b1bef (patch) | |
tree | 37cbf2c09f11c5b0482c7b8ffa096e6d48571307 /include/kunit/test.h | |
parent | kunit: tool: minor cosmetic cleanups in kunit_parser.py (diff) | |
download | linux-0453f984a7b9458f0e469afb039f2841308b1bef.tar.xz linux-0453f984a7b9458f0e469afb039f2841308b1bef.zip |
kunit: tool: misc cleanups
This primarily comes from running pylint over kunit tool code and
ignoring some warnings we don't care about.
If we ever got a fully clean setup, we could add this to run_checks.py,
but we're not there yet.
Fix things like
* Drop unused imports
* check `is None`, not `== None` (see PEP 8)
* remove redundant parens around returns
* remove redundant `else` / convert `elif` to `if` where appropriate
* rename make_arch_qemuconfig() param to base_kunitconfig (this is the
name used in the subclass, and it's a better one)
* kunit_tool_test: check the exit code for SystemExit (could be 0)
Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'include/kunit/test.h')
0 files changed, 0 insertions, 0 deletions