[PATCH v3 0/8] test: Refactor FIT test for clarity and extensibility

Simon Glass sjg at chromium.org
Mon Apr 13 14:59:51 CEST 2026


This series reworks the FIT test (test_fit.py) to make it easier to
maintain and extend. It fixes the buildconfigspec so the test actually
runs on sandbox, avoids unnecessary U-Boot restarts, renames the main
test for easier selection, adds a missing-kernel check, fixes Python
warnings, converts the test to use a class, splits into separate test
functions, and adds Sphinx documentation.

Changes in v3:
- Restore the find_matching() examples, wrapped in a code-block::

Changes in v2:
- Add new patch to fix the buildconfigspec marker
- Remove doctest examples from find_matching() to fix Sphinx warnings
- Add new patch for Sphinx documentation as requested by Tom Rini

Simon Glass (8):
  test: fit: Drop the fit_signature buildconfigspec
  test: fit: Avoid restarting U-Boot
  test: Rename test_fit() to test_fit_base()
  test: Add a check for a missing kernel
  test: Update fit test to fix a few Python warnings
  test: Convert FIT test to use a class
  test: Add fsetup fixture and prepare helper for FIT test
  test: Add documentation for the FIT test

 doc/develop/pytest/test_fit.rst |  10 +
 test/py/tests/test_fit.py       | 431 +++++++++++++++++---------------
 2 files changed, 241 insertions(+), 200 deletions(-)
 create mode 100644 doc/develop/pytest/test_fit.rst

---
base-commit: 1c1bfb1cf34bbb2a5717eb6995c55093279f9341
branch: loada-us3

-- 
2.43.0



More information about the U-Boot mailing list