mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
vendor: update buildkit to master@2d91ddcceedc
Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
4
vendor/github.com/moby/buildkit/util/testutil/integration/containerd.go
generated
vendored
4
vendor/github.com/moby/buildkit/util/testutil/integration/containerd.go
generated
vendored
@ -230,6 +230,10 @@ disabled_plugins = ["cri"]
|
||||
}, cl, nil
|
||||
}
|
||||
|
||||
func (c *Containerd) Close() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func formatLogs(m map[string]*bytes.Buffer) string {
|
||||
var ss []string
|
||||
for k, b := range m {
|
||||
|
4
vendor/github.com/moby/buildkit/util/testutil/integration/dockerd.go
generated
vendored
4
vendor/github.com/moby/buildkit/util/testutil/integration/dockerd.go
generated
vendored
@ -219,6 +219,10 @@ func (c Moby) New(ctx context.Context, cfg *BackendConfig) (b Backend, cl func()
|
||||
}, cl, nil
|
||||
}
|
||||
|
||||
func (c Moby) Close() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func waitForAPI(ctx context.Context, apiClient *client.Client, d time.Duration) error {
|
||||
step := 50 * time.Millisecond
|
||||
i := 0
|
||||
|
4
vendor/github.com/moby/buildkit/util/testutil/integration/oci.go
generated
vendored
4
vendor/github.com/moby/buildkit/util/testutil/integration/oci.go
generated
vendored
@ -84,3 +84,7 @@ func (s *OCI) New(ctx context.Context, cfg *BackendConfig) (Backend, func() erro
|
||||
snapshotter: s.Snapshotter,
|
||||
}, stop, nil
|
||||
}
|
||||
|
||||
func (s *OCI) Close() error {
|
||||
return nil
|
||||
}
|
||||
|
6
vendor/github.com/moby/buildkit/util/testutil/integration/run.go
generated
vendored
6
vendor/github.com/moby/buildkit/util/testutil/integration/run.go
generated
vendored
@ -62,6 +62,7 @@ type BackendConfig struct {
|
||||
|
||||
type Worker interface {
|
||||
New(context.Context, *BackendConfig) (Backend, func() error, error)
|
||||
Close() error
|
||||
Name() string
|
||||
Rootless() bool
|
||||
}
|
||||
@ -168,6 +169,11 @@ func Run(t *testing.T, testCases []Test, opt ...TestOpt) {
|
||||
rng := rand.New(rand.NewSource(time.Now().UnixNano())) //nolint:gosec // using math/rand is fine in a test utility
|
||||
list = []Worker{list[rng.Intn(len(list))]}
|
||||
}
|
||||
t.Cleanup(func() {
|
||||
for _, br := range list {
|
||||
_ = br.Close()
|
||||
}
|
||||
})
|
||||
|
||||
for _, br := range list {
|
||||
for _, tc := range testCases {
|
||||
|
Reference in New Issue
Block a user