summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe
diff options
context:
space:
mode:
authorAlexis Lothoré <alexis.lothore@bootlin.com>2024-02-06 16:29:10 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-02-08 10:59:06 +0000
commitd1ac9bb1bd2132cd121f0e80829302298d8a8a64 (patch)
treea90b8495cb43d4e6ba5c5a08cc04762d201fe682 /meta/classes-recipe
parent62049bfc7aaefb6d81e5aaf2e9db5b457567b03c (diff)
downloadpoky-d1ac9bb1bd2132cd121f0e80829302298d8a8a64.tar.gz
testimage: retrieve ptests directory when ptests fail
TESTIMAGE_FAILED_QA_ARTIFACTS is set with a default, minimal list of files to retrieve whenever a runtime test fails. Add ptests directory to the list so we can get ptests artifacts (eg: logs) whenever a ptest fails. By appending the ptest directory with the multiconfig component in the path, only failing ptests will lead to corresponding ptest artifacts retrieval, instead of all ptests artifacts retrieval. While doing this addition, reinforce default value using "=" operator to make sure to get the default list in any case. (From OE-Core rev: 9357ab6c47f0a0a7000cb18358bc9775fd54e1f7) Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe')
-rw-r--r--meta/classes-recipe/testimage.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes-recipe/testimage.bbclass b/meta/classes-recipe/testimage.bbclass
index f36d941891..281de4784f 100644
--- a/meta/classes-recipe/testimage.bbclass
+++ b/meta/classes-recipe/testimage.bbclass
@@ -22,11 +22,14 @@ TESTIMAGE_AUTO ??= "0"
22# each entry in it, if artifact pointed by path description exists on target, 22# each entry in it, if artifact pointed by path description exists on target,
23# it will be retrieved onto host 23# it will be retrieved onto host
24 24
25TESTIMAGE_FAILED_QA_ARTIFACTS ??= "\ 25TESTIMAGE_FAILED_QA_ARTIFACTS = "\
26 ${localstatedir}/log \ 26 ${localstatedir}/log \
27 ${sysconfdir}/version \ 27 ${sysconfdir}/version \
28 ${sysconfdir}/os-release" 28 ${sysconfdir}/os-release"
29 29
30# If some ptests are run and fail, retrieve corresponding directories
31TESTIMAGE_FAILED_QA_ARTIFACTS += "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '${libdir}/${MCNAME}/ptest', '', d)}"
32
30# You can set (or append to) TEST_SUITES in local.conf to select the tests 33# You can set (or append to) TEST_SUITES in local.conf to select the tests
31# which you want to run for your target. 34# which you want to run for your target.
32# The test names are the module names in meta/lib/oeqa/runtime/cases. 35# The test names are the module names in meta/lib/oeqa/runtime/cases.