diff --git a/nixos/lib/test-driver/Machine.pm b/nixos/lib/test-driver/Machine.pm index 14c39e859bc..85bc376f67f 100644 --- a/nixos/lib/test-driver/Machine.pm +++ b/nixos/lib/test-driver/Machine.pm @@ -508,7 +508,7 @@ sub screenshot { sub getTTYText { my ($self, $tty) = @_; - my ($status, $out) = $self->execute("fold -w 80 /dev/vcs${tty}"); + my ($status, $out) = $self->execute("fold -w\$(stty -F /dev/tty${tty} size | awk '{print \$2}') /dev/vcs${tty}"); return $out; }