Skip to content

Commit

Permalink
[engine] Fix test on windows
Browse files Browse the repository at this point in the history
Change-Id: I73e405fdec668f17919a57b2ef039c062fddc2ff
Reviewed-on: https://fuchsia-review.googlesource.com/c/shac-project/shac/+/910594
Commit-Queue: Marc-Antoine Ruel <[email protected]>
Reviewed-by: Marc-Antoine Ruel <[email protected]>
Fuchsia-Auto-Submit: Oliver Newman <[email protected]>
  • Loading branch information
orn688 authored and CQ Bot committed Aug 31, 2023
1 parent 78e9ed7 commit d40a13f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion internal/engine/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d40a13f

Please sign in to comment.