2021-08-23 09:14:53 -04:00
|
|
|
//go:build !windows
|
2019-06-28 05:58:11 -04:00
|
|
|
// +build !windows
|
|
|
|
|
2018-04-11 05:14:58 -04:00
|
|
|
package macvlan // import "github.com/docker/docker/integration/network/macvlan"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"os"
|
|
|
|
"testing"
|
|
|
|
|
2019-08-29 16:52:40 -04:00
|
|
|
"github.com/docker/docker/testutil/environment"
|
2018-04-11 05:14:58 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
var testEnv *environment.Execution
|
|
|
|
|
|
|
|
func TestMain(m *testing.M) {
|
|
|
|
var err error
|
|
|
|
testEnv, err = environment.New()
|
|
|
|
if err != nil {
|
|
|
|
fmt.Println(err)
|
|
|
|
os.Exit(1)
|
|
|
|
}
|
|
|
|
err = environment.EnsureFrozenImagesLinux(testEnv)
|
|
|
|
if err != nil {
|
|
|
|
fmt.Println(err)
|
|
|
|
os.Exit(1)
|
|
|
|
}
|
|
|
|
|
|
|
|
testEnv.Print()
|
|
|
|
os.Exit(m.Run())
|
|
|
|
}
|