1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-07-17 01:42:37 +02:00

logs for travis debugging

This commit is contained in:
Carlos Alexandro Becker
2017-04-15 13:14:01 -03:00
parent ceb5c1162c
commit c15e8c8108

View File

@ -1,6 +1,7 @@
package git package git
import ( import (
"fmt"
"io/ioutil" "io/ioutil"
"os" "os"
"os/exec" "os/exec"
@ -81,7 +82,9 @@ func createAndChdir(t *testing.T) (current string, back func()) {
previous, err := os.Getwd() previous, err := os.Getwd()
assert.NoError(err) assert.NoError(err)
assert.NoError(os.Chdir(folder)) assert.NoError(os.Chdir(folder))
fmt.Println("Changed dir to", folder)
return folder, func() { return folder, func() {
assert.NoError(os.Chdir(previous)) assert.NoError(os.Chdir(previous))
fmt.Println("Changed dir to", previous)
} }
} }