diff options
| author | Peter Marko <peter.marko@siemens.com> | 2025-06-08 23:47:17 +0200 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-06-13 08:58:01 -0700 |
| commit | 10fba0085de5645bb0366dd309182e0532aeea82 (patch) | |
| tree | 1a259492f79414c97ee0f8e6d04cc37e5210ea8c | |
| parent | 6dfacf4cd3025fa485fa677ff850872882954f71 (diff) | |
| download | poky-10fba0085de5645bb0366dd309182e0532aeea82.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)
(From OE-Core rev: f7ee6db8ca5dc72b7a468531e31403b60e6a0020)
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
| -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 954c213912..33b1c13f9d 100644 --- a/meta/classes-recipe/testimage.bbclass +++ b/meta/classes-recipe/testimage.bbclass | |||
| @@ -25,7 +25,9 @@ TESTIMAGE_AUTO ??= "0" | |||
| 25 | TESTIMAGE_FAILED_QA_ARTIFACTS = "\ | 25 | TESTIMAGE_FAILED_QA_ARTIFACTS = "\ |
| 26 | ${localstatedir}/log \ | 26 | ${localstatedir}/log \ |
| 27 | ${sysconfdir}/version \ | 27 | ${sysconfdir}/version \ |
| 28 | ${sysconfdir}/os-release" | 28 | ${sysconfdir}/os-release \ |
| 29 | ${nonarch_libdir}/os-release \ | ||
| 30 | " | ||
| 29 | 31 | ||
| 30 | # If some ptests are run and fail, retrieve corresponding directories | 32 | # If some ptests are run and fail, retrieve corresponding directories |
| 31 | TESTIMAGE_FAILED_QA_ARTIFACTS += "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '${libdir}/${MCNAME}/ptest', '', d)}" | 33 | TESTIMAGE_FAILED_QA_ARTIFACTS += "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '${libdir}/${MCNAME}/ptest', '', d)}" |
