]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
testimage: implement test artifacts retriever for failing tests
authorAlexis Lothoré <alexis.lothore@bootlin.com>
Fri, 9 Jun 2023 06:48:01 +0000 (08:48 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 17 Jun 2023 10:46:45 +0000 (11:46 +0100)
commit36ef582b8c1c99e6af1ce79ea79f5b059d2a1aad
tree9b6301d05d73b8b39de82b80d3c5564aaa11b986
parentf22e5af0c5f185463c6f4a7fd7f1376c7f22a4da
testimage: implement test artifacts retriever for failing tests

Add a basic artifacts retrievers in testimage class which:
- triggers when at least one runtime test fails but tests execution
  encountered no major issue
- reads a list of paths to retrieve from TESTIMAGE_FAILED_QA_ARTIFACTS
- checks for artifacts presence on target
- retrieve those files over scp thanks to existing ssh class
- store those files in an "artifacts" directory in "tmp/log/oeqa/<image>"

This implementation assumes that the SSH or Qemu target has run and
finished gracefully. If tests do not finish because of an exception,
artifacts will not be retrieved

Bring partial solution to [YOCTO #14901]

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/testimage.bbclass