Skip to content

tests/functional: Fix various problems reported by pylint

Thomas Huth qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6tests/functional: Fix problems in asset.py reported by pylinttests/functional/qemu_test/asset.py+13 -110 replies
2/6tests/functional: Fix problems in decorators.py reported by pylinttests/functional/qemu_test/decorators.py+87 -891 reply
3/6tests/functional: Fix problems in linuxkerenl.py reported by pylinttests/functional/qemu_test/linuxkernel.py+5 -53 replies
4/6tests/functional: Fix problems in testcase.py reported by pylinttests/functional/qemu_test/testcase.py+126 -1252 replies
5/6tests/functional: Fix problems in uncompress.py reported by pylinttests/functional/qemu_test/uncompress.py+20 -201 reply
6/6tests/functional: Fix problems in utils.py reported by pylinttests/functional/qemu_test/utils.py+11 -111 reply

Reviews trailers per patch

4 of 6 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-Daudé
1/6
2/6R-b
3/6
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] tests/functional: Fix various problems reported by pylint

Using pylint to improve the code quality in the tests/functional/qemu_test a little bit, for example:

- put the doc strings in the right locations (after the "def" line, not in front of it)
- use the right indentation everywhere (4 spaces)
- use isinstance() instead of checking via type()
- use lazy logging strings

Thomas Huth (6):
tests/functional: Fix problems in asset.py reported by pylint tests/functional: Fix problems in decorators.py reported by pylint tests/functional: Fix problems in linuxkerenl.py reported by pylint tests/functional: Fix problems in testcase.py reported by pylint tests/functional: Fix problems in uncompress.py reported by pylint tests/functional: Fix problems in utils.py reported by pylint

 tests/functional/qemu_test/asset.py       |  24 ++-
 tests/functional/qemu_test/decorators.py  | 176 ++++++++-------
 tests/functional/qemu_test/linuxkernel.py |  10 +-
 tests/functional/qemu_test/testcase.py    | 251 +++++++++++-----------
 tests/functional/qemu_test/uncompress.py  |  40 ++--
 tests/functional/qemu_test/utils.py       |  22 +-
 6 files changed, 262 insertions(+), 261 deletions(-)
Signature · 1 line
2.51.0