fix(vm): allow full Mango install within driver timeout

This commit is contained in:
Phoebus 2026-09-27 08:27:38 -07:00
parent 0dc6663c34
commit 24b11ebb98

View file

@ -118,7 +118,7 @@ def do_install(results, paths, disks):
url = os.environ.get("INSTALL_URL", "http://10.0.2.2:8000/install.sh")
child.sendline(f"curl -fsSL {url} -o /tmp/run.sh && bash /tmp/run.sh")
child.expect([r"===INSTALL-RC=([0-9]+)===", "===FETCH-FAIL===",
"Kernel panic", pexpect.EOF, pexpect.TIMEOUT], timeout=9000)
"Kernel panic", pexpect.EOF, pexpect.TIMEOUT], timeout=19800)
# `child.after` is the matched pattern class (not a string) when EOF or
# TIMEOUT matched; handle that instead of raising a TypeError.
matched = child.after if isinstance(child.after, str) else ""