github.com/docker/docker@v299999999.0.0-20200612211812-aaf470eca7b5+incompatible/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/testutil/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  }