On Mon Sep 7, 2026 at 8:51 PM CEST, Peter via lists.openembedded.org Tatrai wrote: > From: Peter Tatrai <[email protected]> > > When qemu test runs only produce suffixed bootlog variants, the base > bootlog path may not exist. Guard the symlink creation and log a note > instead of raising FileNotFoundError.
Hello, Where does this FileNotFoundError happen in scarthgap? os.symlink() has no problem creating a symlink to a non existing file and I don't see where we would open bootlog (we do open bootlog in wrynose/master though). Are you sure we need this fix on scarthgap? Or maybe we need something else? > > This is a partial backport of master commit > 7a6596925cb0eb8dd48a0362a51875cdd60152bc, which also introduces > bootlog variant globbing not applicable to scarthgap. Only the > symlink guard, which fixes a standalone bug, is picked here. > > Signed-off-by: Peter Tatrai <[email protected]> > --- > 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: Regards, -- Yoann Congal Smile ECS
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#245640): https://lists.openembedded.org/g/openembedded-core/message/245640 Mute This Topic: https://lists.openembedded.org/mt/121133618/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
