All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] runqemu: match .rootfs. in image names instead of -image-
@ 2024-01-03 10:16 Mikko Rapeli
  2024-01-03 14:54 ` [OE-core] " Martin Jansa
  0 siblings, 1 reply; 6+ messages in thread
From: Mikko Rapeli @ 2024-01-03 10:16 UTC (permalink / raw)
  To: openembedded-core; +Cc: Mikko Rapeli

Don't expect image file names to include "-image-" but
expect them to have the ".rootfs." postfix which is the
default.

Enables running tests against image recipes which are not called
"bla-image" but plain "bla". Currently they fail with do_testimage/runqemu
error:

runqemu - ERROR - Unknown path arg /home/builder/src/base/build/tmp_qemuarm64/deploy/images/qemuarm64/img-qemuarm64.rootfs.wic

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
---
 scripts/runqemu | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/runqemu b/scripts/runqemu
index 18aeb7f5f0..1575677c45 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -373,7 +373,7 @@ class BaseConfig(object):
              re.search('zImage', p) or re.search('vmlinux', p) or \
              re.search('fitImage', p) or re.search('uImage', p):
             self.kernel =  p
-        elif os.path.exists(p) and (not os.path.isdir(p)) and '-image-' in os.path.basename(p):
+        elif os.path.exists(p) and (not os.path.isdir(p)) and '.rootfs.' in os.path.basename(p):
             self.rootfs = p
             # Check filename against self.fstypes can handle <file>.cpio.gz,
             # otherwise, its type would be "gz", which is incorrect.
-- 
2.34.1



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

end of thread, other threads:[~2024-01-04  9:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-03 10:16 [PATCH] runqemu: match .rootfs. in image names instead of -image- Mikko Rapeli
2024-01-03 14:54 ` [OE-core] " Martin Jansa
2024-01-04  6:59   ` Mikko Rapeli
     [not found]   ` <17A712B42F330FC5.10454@lists.openembedded.org>
2024-01-04  7:50     ` Mikko Rapeli
2024-01-04  8:34       ` Richard Purdie
2024-01-04  9:38         ` Mikko Rapeli

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.