support/scripts/boot-qemu-image.py: increase the timeout by 10

As for the Buildroot testsuite, multiply every emulator timeout by 10
to avoid sporadic failures in elastic runners.

qemu_arm_vexpress_tz_defconfig tested locally with sucess.

Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/1970084046

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Romain Naour 2022-01-15 15:33:44 +01:00 committed by Thomas Petazzoni
parent b9a38a42ac
commit 42f7f451ec

View File

@ -25,7 +25,7 @@ def main():
qemu_start = os.path.join(os.getcwd(), 'output/images/start-qemu.sh') qemu_start = os.path.join(os.getcwd(), 'output/images/start-qemu.sh')
child = pexpect.spawn(qemu_start, ['serial-only'], child = pexpect.spawn(qemu_start, ['serial-only'],
timeout=5, encoding='utf-8', timeout=50, encoding='utf-8',
env={"QEMU_AUDIO_DRV": "none"}) env={"QEMU_AUDIO_DRV": "none"})
# We want only stdout into the log to avoid double echo # We want only stdout into the log to avoid double echo
@ -36,7 +36,7 @@ def main():
time.sleep(1) time.sleep(1)
try: try:
child.expect(["buildroot login:"], timeout=60) child.expect(["buildroot login:"], timeout=600)
except pexpect.EOF as e: except pexpect.EOF as e:
# Some emulations require a fork of qemu-system, which may be # Some emulations require a fork of qemu-system, which may be
# missing on the system, and is not provided by Buildroot. # missing on the system, and is not provided by Buildroot.
@ -58,7 +58,7 @@ def main():
child.sendline("root\r") child.sendline("root\r")
try: try:
child.expect(["# "], timeout=60) child.expect(["# "], timeout=600)
except pexpect.EOF: except pexpect.EOF:
print("Cannot connect to shell") print("Cannot connect to shell")
sys.exit(1) sys.exit(1)
@ -69,7 +69,7 @@ def main():
child.sendline("poweroff\r") child.sendline("poweroff\r")
try: try:
child.expect(["System halted"], timeout=60) child.expect(["System halted"], timeout=600)
child.expect(pexpect.EOF) child.expect(pexpect.EOF)
except pexpect.EOF: except pexpect.EOF:
pass pass