Skip to content

Commit

Permalink
fix: staging.* commands output to stdout/stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
powerman committed Apr 18, 2016
1 parent 9b71b9a commit 557eb51
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions narada/staging/staging.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ func setUp() (err error) {

custom := pkgDir + "/testdata/staging.setup"
if _, err = os.Stat(custom); err == nil {
err = exec.Command(custom, pkgDir).Run()
cmd := exec.Command(custom, pkgDir)
cmd.Stdout, cmd.Stderr = os.Stdout, os.Stderr
err = cmd.Run()
if err != nil {
return err
}
Expand All @@ -103,7 +105,9 @@ func TearDown(exitCode int) int {
var err error
custom := pkgDir + "/testdata/staging.teardown"
if _, err = os.Stat(custom); err == nil {
err = exec.Command(custom, pkgDir).Run()
cmd := exec.Command(custom, pkgDir)
cmd.Stdout, cmd.Stderr = os.Stdout, os.Stderr
err = cmd.Run()
if err != nil {
log.Print(err)
return exitCode
Expand Down

0 comments on commit 557eb51

Please sign in to comment.