github.com/jwhonce/docker@v0.6.7-0.20190327063223-da823cf3a5a3/integration/plugin/logging/main_test.go (about) 1 package logging // import "github.com/docker/docker/integration/plugin/logging" 2 3 import ( 4 "fmt" 5 "os" 6 "testing" 7 8 "github.com/docker/docker/internal/test/environment" 9 ) 10 11 var ( 12 testEnv *environment.Execution 13 ) 14 15 func TestMain(m *testing.M) { 16 var err error 17 testEnv, err = environment.New() 18 if err != nil { 19 fmt.Println(err) 20 os.Exit(1) 21 } 22 err = environment.EnsureFrozenImagesLinux(testEnv) 23 if err != nil { 24 fmt.Println(err) 25 os.Exit(1) 26 } 27 testEnv.Print() 28 os.Exit(m.Run()) 29 }