diff options
| author | Peter Marko <peter.marko@siemens.com> | 2025-05-13 09:41:57 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-05-15 10:55:26 +0100 |
| commit | 7d61d49a2f298f3134a1932a09828165be213412 (patch) | |
| tree | e1720eb00bab2543817db5d92f6b32abdee39dc3 /meta/classes-recipe | |
| parent | 8dc5f3376d7746955475865a8c5ea0da9b09d378 (diff) | |
| download | poky-7d61d49a2f298f3134a1932a09828165be213412.tar.gz | |
testimage: get real os-release file
/etc/os-release is a symlink to /usr/lib.
Symlink is retrieved as a dead link which points to nowhere if also the
original file is not accompanying it.
Fetch the real file in addition to this link.
Alternative could be to use "tar -h" (supported also by busybox tar),
however that could lose some important information if links are relevant
for failure analysis.
(From OE-Core rev: ed43f9ccb3c08845259e24440912631afd780d12)
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe')
| -rw-r--r-- | meta/classes-recipe/testimage.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes-recipe/testimage.bbclass b/meta/classes-recipe/testimage.bbclass index e090b1ef4b..847a6f18a8 100644 --- a/meta/classes-recipe/testimage.bbclass +++ b/meta/classes-recipe/testimage.bbclass | |||
| @@ -26,7 +26,9 @@ TESTIMAGE_FAILED_QA_ARTIFACTS = "\ | |||
| 26 | ${localstatedir}/log \ | 26 | ${localstatedir}/log \ |
| 27 | ${localstatedir}/volatile/log \ | 27 | ${localstatedir}/volatile/log \ |
| 28 | ${sysconfdir}/version \ | 28 | ${sysconfdir}/version \ |
| 29 | ${sysconfdir}/os-release" | 29 | ${sysconfdir}/os-release \ |
| 30 | ${nonarch_libdir}/os-release \ | ||
| 31 | " | ||
| 30 | 32 | ||
| 31 | # If some ptests are run and fail, retrieve corresponding directories | 33 | # If some ptests are run and fail, retrieve corresponding directories |
| 32 | TESTIMAGE_FAILED_QA_ARTIFACTS += "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '${libdir}/*/ptest', '', d)}" | 34 | TESTIMAGE_FAILED_QA_ARTIFACTS += "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '${libdir}/*/ptest', '', d)}" |
