]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
testimage: create a list of failed test post actions
authorAlexis Lothoré <alexis.lothore@bootlin.com>
Mon, 26 Feb 2024 09:19:19 +0000 (10:19 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 27 Feb 2024 11:35:40 +0000 (11:35 +0000)
commitc01aa8df0613a103859b4431d3cc5056b2fef1b8
treec6776556df9feb0f92b83894b2236d8efa540d3a
parent01b1a6a5a4e7cede4d23a981b5144ae9c8306274
testimage: create a list of failed test post actions

testimage is able to detect whenever a test run leads to some tests
failing, and execute some actions in this case. The only action currently
defined in such case is to retrieve artifacts from the target under test,
as listed in TESTIMAGE_FAILED_QA_ARTIFACTS

In order to be able to add multiple actions, define a central function to
gather all "post actions" to run whenever a test has failed
(run_failed_tests_post_actions). This function contains a table listing all
functions to be called whenever a test fails. Any function in this table
will be provided with bitbake internal data dictionary ("d") and the
current runtime testing context ("tc"). Isolate all this feature in a
dedicated postactions.py file inherited by testimage.
This patch does not bring any functional change.

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/testimage.bbclass
meta/lib/oeqa/utils/postactions.py [new file with mode: 0644]