mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
integration-cli: remove deprecated dockerCmd and waitRun utilities
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/docker/docker/integration-cli/cli"
|
||||
"github.com/docker/docker/testutil/fixtures/load"
|
||||
"gotest.tools/v3/assert"
|
||||
)
|
||||
@@ -61,7 +62,7 @@ func ensureSyscallTest(ctx context.Context, c *testing.T) {
|
||||
}
|
||||
buildArgs = append(buildArgs, []string{"-q", "-t", "syscall-test", tmp}...)
|
||||
buildArgs = append([]string{"build"}, buildArgs...)
|
||||
dockerCmd(c, buildArgs...)
|
||||
cli.DockerCmd(c, buildArgs...)
|
||||
}
|
||||
|
||||
func ensureSyscallTestBuild(ctx context.Context, c *testing.T) {
|
||||
@@ -74,7 +75,7 @@ func ensureSyscallTestBuild(ctx context.Context, c *testing.T) {
|
||||
}
|
||||
buildArgs = append(buildArgs, []string{"-q", "-t", "syscall-test", "../contrib/syscall-test"}...)
|
||||
buildArgs = append([]string{"build"}, buildArgs...)
|
||||
dockerCmd(c, buildArgs...)
|
||||
cli.DockerCmd(c, buildArgs...)
|
||||
}
|
||||
|
||||
func ensureNNPTest(ctx context.Context, c *testing.T) {
|
||||
@@ -116,7 +117,7 @@ func ensureNNPTest(ctx context.Context, c *testing.T) {
|
||||
}
|
||||
buildArgs = append(buildArgs, []string{"-q", "-t", "nnp-test", tmp}...)
|
||||
buildArgs = append([]string{"build"}, buildArgs...)
|
||||
dockerCmd(c, buildArgs...)
|
||||
cli.DockerCmd(c, buildArgs...)
|
||||
}
|
||||
|
||||
func ensureNNPTestBuild(ctx context.Context, c *testing.T) {
|
||||
@@ -129,5 +130,5 @@ func ensureNNPTestBuild(ctx context.Context, c *testing.T) {
|
||||
}
|
||||
buildArgs = append(buildArgs, []string{"-q", "-t", "npp-test", "../contrib/nnp-test"}...)
|
||||
buildArgs = append([]string{"build"}, buildArgs...)
|
||||
dockerCmd(c, buildArgs...)
|
||||
cli.DockerCmd(c, buildArgs...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user