mbox series

[v3,0/2] testimage: enable artifacts retrieval for failed tests

Message ID 20240205143757.81826-1-alexis.lothore@bootlin.com
Headers show
Series testimage: enable artifacts retrieval for failed tests | expand

Message

Alexis Lothoré Feb. 5, 2024, 2:37 p.m. UTC
Hello,
this small series is a new version of failed ptests artifacts retrieval
series.
The previous version can be found in [1]. This new version just fixes
commit message as well as a patchtest error (commit subject length).
With this series:
- "standard" images running tests leads to default artifact list being
  stored whenever a test fails
- if the image has ptest feature enabled, failed ptests directories will be
  retrieved
- artifacts lists can be customized: TESTIMAGE_FAILED_QA_ARTIFACTS:append =
  " <file1> <file2>..."

The feature has been tested with core-image-sato and core-image-ptest-fast
(running only a subtests of configured tests)

[1] https://lore.kernel.org/openembedded-core/20240203092538.5491-1-alexis.lothore@bootlin.com/

Alexis Lothoré (2):
  testimage: move TESTIMAGE_FAILED_QA_ARTIFACTS default to core-image
  core-image-ptest: retrieve ptests directory when ptests fail

 meta/classes-recipe/core-image.bbclass       | 8 ++++++++
 meta/classes-recipe/testimage.bbclass        | 9 ---------
 meta/recipes-core/images/core-image-ptest.bb | 2 ++
 3 files changed, 10 insertions(+), 9 deletions(-)