From 3a0d1466cc98f0e46e04eea15a28c41e04d14208 Mon Sep 17 00:00:00 2001 From: visualfc Date: Wed, 5 Feb 2025 09:05:05 +0800 Subject: [PATCH] ci: go test remove -v --- .github/workflows/go.yml | 4 ++-- compiler/cl/compile_test.go | 10 ---------- compiler/ssa/cl_test.go | 7 ------- 3 files changed, 2 insertions(+), 19 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index a26d87b7..8ea61021 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -44,11 +44,11 @@ jobs: - name: Test if: ${{!startsWith(matrix.os, 'macos')}} - run: go test -v ./... + run: go test ./... - name: Test with coverage if: startsWith(matrix.os, 'macos') - run: go test -v -coverprofile="coverage.txt" -covermode=atomic ./... + run: go test -coverprofile="coverage.txt" -covermode=atomic ./... - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v5 diff --git a/compiler/cl/compile_test.go b/compiler/cl/compile_test.go index 7132ad05..5922f66f 100644 --- a/compiler/cl/compile_test.go +++ b/compiler/cl/compile_test.go @@ -17,9 +17,6 @@ package cl_test import ( - "io" - "log" - "os" "testing" "github.com/goplus/llgo/compiler/cl" @@ -27,13 +24,6 @@ import ( "github.com/goplus/llgo/compiler/internal/build" ) -func init() { - devNull, _ := os.OpenFile(os.DevNull, os.O_WRONLY, 0) - os.Stderr = devNull - os.Stdout = devNull - log.SetOutput(io.Discard) -} - func testCompile(t *testing.T, src, expected string) { t.Helper() cltest.TestCompileEx(t, src, "foo.go", expected, false) diff --git a/compiler/ssa/cl_test.go b/compiler/ssa/cl_test.go index 0fe49ce3..91d229f6 100644 --- a/compiler/ssa/cl_test.go +++ b/compiler/ssa/cl_test.go @@ -18,9 +18,6 @@ package ssa_test import ( "go/types" - "io" - "log" - "os" "testing" "github.com/goplus/llgo/compiler/cl/cltest" @@ -29,10 +26,6 @@ import ( ) func init() { - devNull, _ := os.OpenFile(os.DevNull, os.O_WRONLY, 0) - os.Stderr = devNull - os.Stdout = devNull - log.SetOutput(io.Discard) ssa.SetDebug(ssa.DbgFlagAll) }