Skip to content

ci: Print go test stats #6855

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Apr 3, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix windows newlines
  • Loading branch information
mafredri committed Apr 3, 2023
commit 3248e83147aa2c942f51a922cd622bc19971d2df
5 changes: 5 additions & 0 deletions scripts/ci-report/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"flag"
"os"
"path/filepath"
"runtime"
"testing"

"github.com/stretchr/testify/require"
Expand Down Expand Up @@ -61,6 +62,10 @@ func TestOutputMatchesGoldenFile(t *testing.T) {
}

want := readGoldenFile(t, goldenFile)
if runtime.GOOS == "windows" {
want = bytes.ReplaceAll(want, []byte("\r\n"), []byte("\n"))
got = bytes.ReplaceAll(got, []byte("\r\n"), []byte("\n"))
}
require.Equal(t, string(want), string(got))
})
}
Expand Down