Commit c6c04ef9 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer: Discard log output in tests

parent 67993150
...@@ -5,11 +5,18 @@ import ( ...@@ -5,11 +5,18 @@ import (
"cgl.tideland.biz/asserts" "cgl.tideland.biz/asserts"
"errors" "errors"
"fmt" "fmt"
"io/ioutil"
"log"
"os" "os"
"strings" "strings"
"testing" "testing"
) )
func init() {
// Disable log output for tests
log.SetOutput(ioutil.Discard)
}
func testEnvironment() Environment { func testEnvironment() Environment {
config := DefaultEnvironmentConfig() config := DefaultEnvironmentConfig()
config.Ui = &ReaderWriterUi{ config.Ui = &ReaderWriterUi{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment