From a4ea1dba7c8022ad6e901147d8717b54581fefc4 Mon Sep 17 00:00:00 2001 From: Philipp Schuster Date: Tue, 1 Sep 2026 07:10:53 +0200 Subject: [PATCH] nix: fix printing during nix-build --- nix/local-test-runs.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nix/local-test-runs.nix b/nix/local-test-runs.nix index ac2055f..90fc7d5 100644 --- a/nix/local-test-runs.nix +++ b/nix/local-test-runs.nix @@ -86,7 +86,10 @@ let # VMMs. echo -e "$(ansi bold)Running guest test '${testname}' via ${classifier} with $timeout timeout$(ansi reset)" echo "Executing \"${vmmCommand.main}\"" - timeout --preserve-status --signal KILL "$timeout" ${vmmCommand.main} + # The guest prints CRLF line endings on the serial console. Strip the + # CRs, as Nix >= 2.34 truncates displayed log lines at the last CR, + # which renders them as blank lines. + timeout --preserve-status --signal KILL "$timeout" ${vmmCommand.main} | stdbuf -oL tr -d '\r' touch $out '';