Openembedded Core Discussions
 help / color / mirror / Atom feed
* [scarthgap][PATCH] testimage: avoid symlinking missing qemu boot log
@ 2026-08-25 12:56 P. Tatrai
  2026-09-05 22:29 ` [OE-core] " Yoann Congal
  2026-09-07 18:51 ` [scarthgap][PATCH v2] " P. Tatrai
  0 siblings, 2 replies; 7+ messages in thread
From: P. Tatrai @ 2026-08-25 12:56 UTC (permalink / raw)
  To: openembedded-core; +Cc: Peter Tatrai

From: Peter Tatrai <peter.tatrai.ext@siemens.com>

When qemu test runs only produce suffixed bootlog variants, the base
bootlog path may not exist. Guard the symlink creation and log a note.

(From OE-Core rev: 7a6596925cb0eb8dd48a0362a51875cdd60152bc)

Signed-off-by: Peter Tatrai <peter.tatrai.ext@siemens.com>
---
 meta/classes-recipe/testimage.bbclass | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta/classes-recipe/testimage.bbclass b/meta/classes-recipe/testimage.bbclass
index 33b1c13f9d..744de5d7de 100644
--- a/meta/classes-recipe/testimage.bbclass
+++ b/meta/classes-recipe/testimage.bbclass
@@ -395,7 +395,10 @@ def testimage_main(d):
     # Copy additional logs to tmp/log/oeqa so it's easier to find them
     targetdir = os.path.join(get_json_result_dir(d), d.getVar("PN"))
     os.makedirs(targetdir, exist_ok=True)
-    os.symlink(bootlog, os.path.join(targetdir, os.path.basename(bootlog)))
+    if os.path.exists(bootlog):
+        os.symlink(bootlog, os.path.join(targetdir, os.path.basename(bootlog)))
+    else:
+        bb.note("testimage: boot log not found at %s" % bootlog)
     os.symlink(d.getVar("BB_LOGFILE"), os.path.join(targetdir, os.path.basename(d.getVar("BB_LOGFILE") + "." + d.getVar('DATETIME'))))
 
     if not results or not complete:
-- 
2.39.5



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-09-14 14:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-25 12:56 [scarthgap][PATCH] testimage: avoid symlinking missing qemu boot log P. Tatrai
2026-09-05 22:29 ` [OE-core] " Yoann Congal
2026-09-07 18:57   ` Tatrai, Peter
2026-09-07 18:51 ` [scarthgap][PATCH v2] " P. Tatrai
2026-09-11 12:32   ` [OE-core] " Yoann Congal
2026-09-14  9:03     ` Tatrai, Peter
2026-09-14 14:02       ` Yoann Congal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox