mbox series

[0/4] resulttool: JUnit ptest support and robustness; add selftests

Message ID 20260108113647.56663-1-miroslav.cernak@siemens.com
Headers show
Series resulttool: JUnit ptest support and robustness; add selftests | expand

Message

Miroslav Cernak Jan. 8, 2026, 11:36 a.m. UTC
Hello maintainers,

This series improves resulttool’s JUnit exporter and extends oe-selftest coverage.

Highlights:

JUnit ptest support: Emit a structured hierarchy for imagetests and ptests, with optional per-ptest attached logs.
Robustness: Avoid KeyError when ptest results are missing (e.g., absent ptestresult.* entries).
Correct statuses: Report real failures as FAILED (not SKIPPED) and include failing testcase names for first-read diagnosability.
Readable failures: Preserve useful multiline details; where only attribute messages are possible, collapse “\n” to spaces to avoid “ ” artifacts in GitLab.
Tests: Add and refine oe-selftests that exercise imagetests and ptests (both inline and attached logs), and verify improved status/error reporting.

Adrian Freihofer (2):
  resulttool: junit support ptests
  oe-selftest: add resulttool junit test

Miroslav Cernak (2):
  resulttool: junit: improve ptest status handling and log
  oe-selftest: improved junit test

 .../oeqa/selftest/cases/resulttooltests.py    | 187 +++++++++++
 scripts/lib/resulttool/junit.py               | 310 +++++++++++++++---
 2 files changed, 445 insertions(+), 52 deletions(-)