From: Romain Naour <romain.naour@gmail.com>
To: buildroot@buildroot.org
Cc: Romain Naour <romain.naour@gmail.com>
Subject: [Buildroot] [PATCH 2/2] support/scripts/boot-qemu-image.py: increase the timeout by 10
Date: Sat, 15 Jan 2022 15:33:44 +0100 [thread overview]
Message-ID: <20220115143344.12319-2-romain.naour@gmail.com> (raw)
In-Reply-To: <20220115143344.12319-1-romain.naour@gmail.com>
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>
---
support/scripts/boot-qemu-image.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/support/scripts/boot-qemu-image.py b/support/scripts/boot-qemu-image.py
index fba1533bb7..ba50ea69ee 100755
--- a/support/scripts/boot-qemu-image.py
+++ b/support/scripts/boot-qemu-image.py
@@ -25,7 +25,7 @@ def main():
qemu_start = os.path.join(os.getcwd(), 'output/images/start-qemu.sh')
child = pexpect.spawn(qemu_start, ['serial-only'],
- timeout=5, encoding='utf-8',
+ timeout=50, encoding='utf-8',
env={"QEMU_AUDIO_DRV": "none"})
# We want only stdout into the log to avoid double echo
@@ -36,7 +36,7 @@ def main():
time.sleep(1)
try:
- child.expect(["buildroot login:"], timeout=60)
+ child.expect(["buildroot login:"], timeout=600)
except pexpect.EOF as e:
# Some emulations require a fork of qemu-system, which may be
# missing on the system, and is not provided by Buildroot.
@@ -58,7 +58,7 @@ def main():
child.sendline("root\r")
try:
- child.expect(["# "], timeout=60)
+ child.expect(["# "], timeout=600)
except pexpect.EOF:
print("Cannot connect to shell")
sys.exit(1)
@@ -69,7 +69,7 @@ def main():
child.sendline("poweroff\r")
try:
- child.expect(["System halted"], timeout=60)
+ child.expect(["System halted"], timeout=600)
child.expect(pexpect.EOF)
except pexpect.EOF:
pass
--
2.31.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2022-01-15 14:34 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-15 14:33 [Buildroot] [PATCH 1/2] board/qemu/arm-vexpress-tz: use enable=on Romain Naour
2022-01-15 14:33 ` Romain Naour [this message]
2022-01-15 16:05 ` [Buildroot] [PATCH 2/2] support/scripts/boot-qemu-image.py: increase the timeout by 10 Yann E. MORIN
2022-01-15 19:28 ` Romain Naour
2022-01-15 20:23 ` Yann E. MORIN
2022-01-16 12:37 ` Romain Naour
2022-07-27 13:57 ` Thomas Petazzoni via buildroot
2022-08-30 16:04 ` Peter Korsgaard
2022-01-15 16:03 ` [Buildroot] [PATCH 1/2] board/qemu/arm-vexpress-tz: use enable=on Yann E. MORIN
2022-01-18 8:54 ` Etienne Carriere
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220115143344.12319-2-romain.naour@gmail.com \
--to=romain.naour@gmail.com \
--cc=buildroot@buildroot.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox