diff --git a/packer/environment_test.go b/packer/environment_test.go index 822f9bce8..125058bf2 100644 --- a/packer/environment_test.go +++ b/packer/environment_test.go @@ -5,11 +5,18 @@ import ( "cgl.tideland.biz/asserts" "errors" "fmt" + "io/ioutil" + "log" "os" "strings" "testing" ) +func init() { + // Disable log output for tests + log.SetOutput(ioutil.Discard) +} + func testEnvironment() Environment { config := DefaultEnvironmentConfig() config.Ui = &ReaderWriterUi{