2018-11-04 19:52:26 -05:00
|
|
|
package daemon // import "github.com/docker/docker/integration/daemon"
|
|
|
|
|
|
|
|
import (
|
2022-09-30 18:30:58 -04:00
|
|
|
"fmt"
|
2018-11-04 19:52:26 -05:00
|
|
|
"os"
|
|
|
|
"testing"
|
2022-09-30 18:30:58 -04:00
|
|
|
|
|
|
|
"github.com/docker/docker/testutil/environment"
|
2018-11-04 19:52:26 -05:00
|
|
|
)
|
|
|
|
|
2022-09-30 18:30:58 -04:00
|
|
|
var testEnv *environment.Execution
|
|
|
|
|
2018-11-04 19:52:26 -05:00
|
|
|
func TestMain(m *testing.M) {
|
2022-09-30 18:30:58 -04:00
|
|
|
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()
|
2018-11-04 19:52:26 -05:00
|
|
|
os.Exit(m.Run())
|
|
|
|
}
|