.github: run tests with ci.go (#32590)

`ci.go` is the place to add custom build flags, build tags, etc. for the
test run. So we should use it for CI.
This commit is contained in:
Felix Lange 2025-09-11 20:15:51 +02:00 committed by GitHub
parent cbf0b5bc92
commit 1c3703c888
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -55,4 +55,4 @@ jobs:
cache: false
- name: Run tests
run: go test ./...
run: go run build/ci.go test

View file

@ -91,7 +91,7 @@ func testConsoleLogging(t *testing.T, format string, tStart, tEnd int) {
have = censor(have, tStart, tEnd)
want = censor(want, tStart, tEnd)
if have != want {
t.Logf(nicediff([]byte(have), []byte(want)))
t.Log(nicediff([]byte(have), []byte(want)))
t.Fatalf("format %v, line %d\nhave %v\nwant %v", format, i, have, want)
}
}
@ -142,7 +142,7 @@ func TestJsonLogging(t *testing.T) {
}
if !bytes.Equal(have, want) {
// show an intelligent diff
t.Logf(nicediff(have, want))
t.Log(nicediff(have, want))
t.Errorf("file content wrong")
}
}
@ -211,7 +211,7 @@ func TestFileOut(t *testing.T) {
}
if !bytes.Equal(have, want) {
// show an intelligent diff
t.Logf(nicediff(have, want))
t.Log(nicediff(have, want))
t.Errorf("file content wrong")
}
}
@ -231,7 +231,7 @@ func TestRotatingFileOut(t *testing.T) {
}
if !bytes.Equal(have, want) {
// show an intelligent diff
t.Logf(nicediff(have, want))
t.Log(nicediff(have, want))
t.Errorf("file content wrong")
}
}