mbox series

[v2,0/2] Python code style for the testsuite

Message ID 20240719062940.2601132-1-amikan@ilbers.de
Headers show
Series Python code style for the testsuite | expand

Message

Anton Mikanovich July 19, 2024, 6:29 a.m. UTC
Current testcases are written in various different code styles ignoring
any linter checks. Fix this and also declare some rules and usefull
tools for the future test writers.

Changes since v1:
- Fix join in startvm test cases.
- Fix wording and typos.

Anton Mikanovich (2):
  testsuite: Provide code style documentation
  testsuite: Fix code style

 testsuite/README.md                           |  50 +++
 testsuite/cibase.py                           | 237 ++++++----
 testsuite/cibuilder.py                        | 425 +++++++++++-------
 testsuite/citest.py                           | 245 ++++++----
 testsuite/repro-build-test.py                 |  39 +-
 testsuite/start_vm.py                         | 152 +++++--
 testsuite/unittests/bitbake.py                |  22 +-
 testsuite/unittests/rootfs.py                 |   9 +-
 .../unittests/test_image_account_extension.py | 162 ++++---
 9 files changed, 866 insertions(+), 475 deletions(-)

Comments

Uladzimir Bely July 31, 2024, 6:44 a.m. UTC | #1
On Fri, 2024-07-19 at 09:29 +0300, Anton Mikanovich wrote:
> Current testcases are written in various different code styles
> ignoring
> any linter checks. Fix this and also declare some rules and usefull
> tools for the future test writers.
> 
> Changes since v1:
> - Fix join in startvm test cases.
> - Fix wording and typos.
> 
> Anton Mikanovich (2):
>   testsuite: Provide code style documentation
>   testsuite: Fix code style
> 
>  testsuite/README.md                           |  50 +++
>  testsuite/cibase.py                           | 237 ++++++----
>  testsuite/cibuilder.py                        | 425 +++++++++++-----
> --
>  testsuite/citest.py                           | 245 ++++++----
>  testsuite/repro-build-test.py                 |  39 +-
>  testsuite/start_vm.py                         | 152 +++++--
>  testsuite/unittests/bitbake.py                |  22 +-
>  testsuite/unittests/rootfs.py                 |   9 +-
>  .../unittests/test_image_account_extension.py | 162 ++++---
>  9 files changed, 866 insertions(+), 475 deletions(-)
> 
> -- 
> 2.34.1
> 

Applied to next.