fix container test after systemd update

This commit is contained in:
Jörg Thalheim
2024-09-20 18:26:41 +02:00
parent cd67a5dc53
commit 6fef7c9aa7

View File

@@ -78,7 +78,10 @@ class Machine:
assert self.process.stdout is not None, "Machine has no stdout"
for line in self.process.stdout:
print(line, end="")
if line.startswith("systemd[1]: Startup finished in"):
if (
line.startswith("systemd[1]: Startup finished in")
or "Welcome to NixOS" in line
):
break
else:
msg = f"Failed to start container {self.name}"