1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-07-15 01:34:21 +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
import (
"fmt"
"io/ioutil"
"os"
"os/exec"
@ -81,7 +82,9 @@ func createAndChdir(t *testing.T) (current string, back func()) {
previous, err := os.Getwd()
assert.NoError(err)
assert.NoError(os.Chdir(folder))
fmt.Println("Changed dir to", folder)
return folder, func() {
assert.NoError(os.Chdir(previous))
fmt.Println("Changed dir to", previous)
}
}