Bug 16196 - resulttool junit generation doesn't show individual ptest tests
Summary: resulttool junit generation doesn't show individual ptest tests
Status: NEW
Alias: None
Product: Tooling
Classification: QA/Testing
Component: tooling (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 6.1
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2026-03-11 17:21 UTC by Ross Burton
Modified: 2026-03-12 14:45 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ross Burton 2026-03-11 17:21:03 UTC
If I run core-image-ptest-cpio:do_testimage then generated testresults.json lists individual cpio test cases:

   "ptestresult.cpio.big_block_size": {
    "status": "PASSED"
   },
   "ptestresult.cpio.cpio_version": {
    "status": "PASSED"
   },
   "ptestresult.cpio.delayed_setstat": {
    "status": "PASSED"
   },

However, if I generate JUnit from this then I just get a top-level item:

  <testsuite name="Package Tests" errors="0" failures="0" skipped="0" tests="1" time="1">
    <testcase name="cpio" classname="ptest" time="1" />
  </testsuite>

I think "cpio" should be a nested testsuite and then we can have each test case listed.