Skip to content

tests/functional: add CLI args

Manos Pitsidianakis qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected] change-id 20250716-functional_tests_debug_arg-aa0a5f6b9375

Versions newest first

  1. v3 Latest4 patches 6 repliesIn review
  2. v21 patch 4 repliesSuperseded
  3. v11 patch 18 repliesSuperseded

Changes in v3 from the cover letter

- Merged with other patch series
- Made argument values into class attributes, and parse_args into a
class method (staticmethod) (suggested by Thomas)
- Link to v2: https://lore.kernel.org/qemu-devel/[email protected]

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4tests/functional: add --debug CLI argdocs/devel/testing/functional.rst tests/functional/qemu_test/testcase.py+52 -41 reply
2/4tests/functional: add --keep-scratch CLI argtests/functional/qemu_test/testcase.py+12 -10 replies
3/4tests/functional: add --list-tests CLI argtests/functional/qemu_test/testcase.py+14 -00 replies
4/4tests/functional: add -k TEST_NAME_PATTERN CLI argtests/functional/qemu_test/testcase.py+21 -25 replies

Reviews trailers per patch

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

PatchThomas HuthAlex Bennée
1/4T-b
2/4A-b
3/4
4/4A-b T-b

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

Read the v3 thread

Cover letter [PATCH v3 0/4] tests/functional: add CLI args

This series adds extra CLI args for functional tests, useful for developers that run test files directly.

---
Changes in v3:
- Merged with other patch series
- Made argument values into class attributes, and parse_args into a
class method (staticmethod) (suggested by Thomas)
- Link to v2: https://lore.kernel.org/qemu-devel/[email protected]

Changes in v2:
- Store stdout handler in self object (thanks Daniel)
- Deduplicate handler removal code (Daniel)
- Amend commit description to mention PYTHONPATH (thanks Alex)
- Link to v1: https://lore.kernel.org/qemu-devel/[email protected]

---
Manos Pitsidianakis (4):

      tests/functional: add --debug CLI arg
      tests/functional: add --keep-scratch CLI arg
      tests/functional: add --list-tests CLI arg
      tests/functional: add -k TEST_NAME_PATTERN CLI arg
 docs/devel/testing/functional.rst      |   2 +
 tests/functional/qemu_test/testcase.py | 104 ++++++++++++++++++++++++++++++---
 2 files changed, 99 insertions(+), 7 deletions(-)

---
base-commit: 4bc8fb0135ac48cd1c8f0698976b7d73c60b7caa
change-id: 20250716-functional_tests_debug_arg-aa0a5f6b9375

--
γαῖα πυρί μιχθήτω