summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikko Rapeli <mikko.rapeli@linaro.org>2024-01-04 12:14:37 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-01-04 23:47:51 +0000
commit339ccc0c2bd2801d83cb65b22c6cdb8a93d25bb2 (patch)
tree14c4b8e5e3de85bab0e7c7365c7686ee6051f6f8
parent01ef197c6b3f4d772acee32a9fde0f270dddef76 (diff)
downloadpoky-339ccc0c2bd2801d83cb65b22c6cdb8a93d25bb2.tar.gz
runqemu: match .rootfs. in addition to -image- for rootfs
Also change path.exists() and !path.isdir() to a single path.isfile() which should be equal. 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 Suggested-by: Richard Purdie <richard.purdie@linuxfoundation.org> (From OE-Core rev: 107d0db3dc3678e6f0ae4035f4c0b86c6b421168) Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xscripts/runqemu2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index f4d0420109..69cd44864e 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -375,7 +375,7 @@ class BaseConfig(object):
375 re.search('zImage', p) or re.search('vmlinux', p) or \ 375 re.search('zImage', p) or re.search('vmlinux', p) or \
376 re.search('fitImage', p) or re.search('uImage', p): 376 re.search('fitImage', p) or re.search('uImage', p):
377 self.kernel = p 377 self.kernel = p
378 elif os.path.exists(p) and (not os.path.isdir(p)) and '-image-' in os.path.basename(p): 378 elif os.path.isfile(p) and ('-image-' in os.path.basename(p) or '.rootfs.' in os.path.basename(p)):
379 self.rootfs = p 379 self.rootfs = p
380 # Check filename against self.fstypes can handle <file>.cpio.gz, 380 # Check filename against self.fstypes can handle <file>.cpio.gz,
381 # otherwise, its type would be "gz", which is incorrect. 381 # otherwise, its type would be "gz", which is incorrect.