github.com/lacework-dev/go-moby@v20.10.12+incompatible/integration/network/macvlan/main_test.go (about) 1 // +build !windows 2 3 package macvlan // import "github.com/docker/docker/integration/network/macvlan" 4 5 import ( 6 "fmt" 7 "os" 8 "testing" 9 10 "github.com/docker/docker/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 }