diff --git a/internal/engine/run_test.go b/internal/engine/run_test.go index 2a15c8e..ed93f01 100644 --- a/internal/engine/run_test.go +++ b/internal/engine/run_test.go @@ -1661,7 +1661,13 @@ func TestTestDataPrint(t *testing.T) { }, { "ctx-os-exec-relpath.star", - "[//ctx-os-exec-relpath.star:17] Hello from a nested file\n\n", + func() string { + // TODO(maruel): Decide if we want to do CRLF translation automatically. + if runtime.GOOS == "windows" { + return "[//ctx-os-exec-relpath.star:17] Hello from a nested file\r\n\n" + } + return "[//ctx-os-exec-relpath.star:17] Hello from a nested file\n\n" + }(), }, { "ctx-os-exec-stdin.star",