packer: Discard log output in tests

This commit is contained in:
Mitchell Hashimoto 2013-06-18 23:18:21 -07:00
parent 6799315081
commit c6c04ef911
1 changed files with 7 additions and 0 deletions

View File

@ -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{