fix(agent/agentcontainers): stop logging empty lines (#18605)

This PR makes the devcontainer logs have fewer whitespace lines.
This commit is contained in:
Danielle Maywood
2025-06-26 15:58:10 +00:00
committed by GitHub
parent 5ae320e79e
commit 98c77fece5
4 changed files with 8 additions and 16 deletions
@@ -11,6 +11,7 @@ import (
"os"
"os/exec"
"path/filepath"
"runtime"
"strings"
"testing"
@@ -343,6 +344,10 @@ func TestDevcontainerCLI_WithOutput(t *testing.T) {
t.Run("Up", func(t *testing.T) {
t.Parallel()
if runtime.GOOS == "windows" {
t.Skip("Windows uses CRLF line endings, golden file is LF")
}
// Buffers to capture stdout and stderr.
outBuf := &bytes.Buffer{}
errBuf := &bytes.Buffer{}