github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/integration/network/macvlan/main_test.go (about) 1 // +build !windows 2 3 package macvlan // import "github.com/demonoid81/moby/integration/network/macvlan" 4 5 import ( 6 "fmt" 7 "os" 8 "testing" 9 10 "github.com/demonoid81/moby/testutil/environment" 11 ) 12 13 var testEnv *environment.Execution 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 28 testEnv.Print() 29 os.Exit(m.Run()) 30 }