nixos/test-driver: fix formatting

This caused the test driver to fail to build.

Fixes: 406de94b41 ("nixos/test-driver: add `timeout` option for `wait_for_console_text`")
This commit is contained in:
Alyssa Ross 2023-05-28 11:49:23 +00:00
parent 05c30cbde3
commit 507ff39251

View file

@ -867,6 +867,7 @@ class Machine:
# Buffer the console output, this is needed
# to match multiline regexes.
console = io.StringIO()
def console_matches() -> bool:
nonlocal console
try:
@ -877,7 +878,7 @@ class Machine:
pass
console.seek(0)
matches = re.search(regex, console.read())
return (matches is not None)
return matches is not None
with self.nested(f"waiting for {regex} to appear on console"):
if timeout is not None: