github.com/ali-iotechsys/cli@v20.10.0+incompatible/e2e/context/main_test.go (about) 1 package context 2 3 import ( 4 "fmt" 5 "os" 6 "testing" 7 8 "github.com/docker/cli/internal/test/environment" 9 ) 10 11 func TestMain(m *testing.M) { 12 if err := environment.Setup(); err != nil { 13 fmt.Println(err.Error()) 14 os.Exit(3) 15 } 16 os.Exit(m.Run()) 17 }