1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-16 03:52:12 +02:00

test: reducing test ouput (#3222)

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos Alexandro Becker 2022-07-04 21:13:10 -03:00 committed by GitHub
parent 5b591c9648
commit 5a6dd2fbc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 2 additions and 6 deletions

View File

@ -37,7 +37,7 @@ func TestSingleCommit(t *testing.T) {
}
func TestAnnotatedTags(t *testing.T) {
t.Log(testlib.Mktmp(t))
testlib.Mktmp(t)
testlib.GitInit(t)
testlib.GitRemoteAdd(t, "git@github.com:foo/bar.git")
testlib.GitCommit(t, "commit1")

View File

@ -206,8 +206,7 @@ func TestRun(t *testing.T) {
for arch, path := range paths {
cmd := exec.Command("go", "build", "-o", path, src)
cmd.Env = append(os.Environ(), "GOOS=darwin", "GOARCH="+arch)
out, err := cmd.CombinedOutput()
t.Log(string(out))
_, err := cmd.CombinedOutput()
require.NoError(t, err)
modTime := time.Unix(0, 0)

View File

@ -82,7 +82,6 @@ func TestTarFile(t *testing.T) {
}
require.NoError(t, err)
paths = append(paths, next.Name)
t.Logf("%s: %v", next.Name, next.FileInfo().Mode())
if next.Name == "sub1/executable" {
ex := next.FileInfo().Mode() | 0o111
require.Equal(t, next.FileInfo().Mode().String(), ex.String())

View File

@ -86,7 +86,6 @@ func TestTarXzFile(t *testing.T) {
}
require.NoError(t, err)
paths = append(paths, next.Name)
t.Logf("%s: %v", next.Name, next.FileInfo().Mode())
if next.Name == "sub1/executable" {
ex := next.FileInfo().Mode() | 0o111
require.Equal(t, next.FileInfo().Mode().String(), ex.String())

View File

@ -79,7 +79,6 @@ func TestZipFile(t *testing.T) {
paths := make([]string, len(r.File))
for i, zf := range r.File {
paths[i] = zf.Name
t.Logf("%s: %v", zf.Name, zf.Mode())
if zf.Name == "sub1/executable" {
ex := zf.Mode() | 0o111
require.Equal(t, zf.Mode().String(), ex.String())