github.com/rumpl/bof@v23.0.0-rc.2+incompatible/integration/network/macvlan/main_test.go (about)

     1  //go:build !windows
     2  // +build !windows
     3  
     4  package macvlan // import "github.com/docker/docker/integration/network/macvlan"
     5  
     6  import (
     7  	"fmt"
     8  	"os"
     9  	"testing"
    10  
    11  	"github.com/docker/docker/testutil/environment"
    12  )
    13  
    14  var testEnv *environment.Execution
    15  
    16  func TestMain(m *testing.M) {
    17  	var err error
    18  	testEnv, err = environment.New()
    19  	if err != nil {
    20  		fmt.Println(err)
    21  		os.Exit(1)
    22  	}
    23  	err = environment.EnsureFrozenImagesLinux(testEnv)
    24  	if err != nil {
    25  		fmt.Println(err)
    26  		os.Exit(1)
    27  	}
    28  
    29  	testEnv.Print()
    30  	os.Exit(m.Run())
    31  }