nixos/test-driver: show all lines of container journal

This commit is contained in:
Kierán Meinhardt
2026-03-03 16:32:01 +01:00
parent 184674895e
commit 99884696cc
@@ -1534,7 +1534,16 @@ class NspawnMachine(BaseMachine):
# Using a loop here handles cases where journalctl might exit unexpectedly
while self.process.poll() is None: # While the container is still running
with subprocess.Popen(
["journalctl", "-f", "-D", journal_path, "-o", "short-monotonic"],
[
"journalctl",
"-f",
"-D",
journal_path,
"--lines",
"all",
"-o",
"short-monotonic",
],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
text=True,