1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

nixos/test-driver: fix timeout option for wait_for_console_text

This commit is contained in:
Lily Foster 2023-06-15 06:47:49 -04:00
parent 4729ffac6f
commit f1f0d4fbdd
No known key found for this signature in database
GPG key ID: 49340081E484C893

View file

@ -868,7 +868,7 @@ class Machine:
# to match multiline regexes.
console = io.StringIO()
def console_matches() -> bool:
def console_matches(_: Any) -> bool:
nonlocal console
try:
# This will return as soon as possible and
@ -884,7 +884,7 @@ class Machine:
if timeout is not None:
retry(console_matches, timeout)
else:
while not console_matches():
while not console_matches(False):
pass
def send_key(