mirror of
https://github.com/goreleaser/goreleaser.git
synced 2026-06-19 23:24:39 +02:00
test: reducing test ouput (#3222)
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user