Skip to content

Commit a39579e

Browse files
committed
qemu: Allow specifying the pexpect timeout via an env var
This allows shortening the timeout which can be useful to speed up the failure of the script when bisecting a known failure. It also allows lengthening the timeout on a slow/overloaded system.
1 parent 158aba8 commit a39579e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/qemu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def qemu_main(qemu_machine, cpuinfo_platform, cpu, net, args):
178178
cmdline += get_env_var('LINUX_CMDLINE', '')
179179

180180
# Default timeout for a single pexpect call
181-
pexpect_timeout = 60
181+
pexpect_timeout = int(get_env_var('QEMU_PEXPECT_TIMEOUT', 60))
182182

183183
gdb = None
184184
if '--gdb' in args:

0 commit comments

Comments
 (0)