[Buildroot] [git commit] support/scripts/boot-qemu-image.py: don't fail if start-qemu.sh is missing

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sat Dec 5 21:33:27 UTC 2020

commit: https://git.buildroot.net/buildroot/commit/?id=d673618342bcc655f6b961b799bdd419ebd01656
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

When boot-qemu-image.py script was added, we wanted to run
each qemu defconfig in gitlab, so we expect that all qemu
defconfig generate the script start-qemu.sh in images

Don't make it a hard requirement even if we prefer to be
able to do a runtime test for each qemu defconfig.

Signed-off-by: Romain Naour <romain.naour at gmail.com>
Cc: Yann E. MORIN <yann.morin.1998 at free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
 support/scripts/boot-qemu-image.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/support/scripts/boot-qemu-image.py b/support/scripts/boot-qemu-image.py
index dbbba552ad..4066788c88 100755
--- a/support/scripts/boot-qemu-image.py
+++ b/support/scripts/boot-qemu-image.py
@@ -18,6 +18,10 @@ def main():
     if not sys.argv[1].startswith('qemu_'):
+    if not os.path.exists('output/images/start-qemu.sh'):
+        print('qemu-start.sh is missing, cannot test.')
+        sys.exit(0)
     qemu_start = os.path.join(os.getcwd(), 'output/images/start-qemu.sh')
     child = pexpect.spawn(qemu_start, ['serial-only'],

More information about the buildroot mailing list