From c959d26d2f413fa93b60174c4e19111eff0a845d Mon Sep 17 00:00:00 2001 From: Jessica Frazelle Date: Tue, 24 Mar 2015 21:00:48 -0700 Subject: [PATCH] fix 2 integration tests on lxc Docker-DCO-1.1-Signed-off-by: Jessica Frazelle (github: jfrazelle) --- integration-cli/docker_cli_build_test.go | 1 + integration-cli/docker_cli_run_test.go | 1 + 2 files changed, 2 insertions(+) diff --git a/integration-cli/docker_cli_build_test.go b/integration-cli/docker_cli_build_test.go index 954c0e5d9b..3e93c08c3c 100644 --- a/integration-cli/docker_cli_build_test.go +++ b/integration-cli/docker_cli_build_test.go @@ -1959,6 +1959,7 @@ func TestBuildCancelationKillsSleep(t *testing.T) { name := "testbuildcancelation" defer deleteImages(name) + defer deleteAllContainers() // (Note: one year, will never finish) ctx, err := fakeContext("FROM busybox\nRUN sleep 31536000", nil) diff --git a/integration-cli/docker_cli_run_test.go b/integration-cli/docker_cli_run_test.go index 083e651bfd..26cfcccde4 100644 --- a/integration-cli/docker_cli_run_test.go +++ b/integration-cli/docker_cli_run_test.go @@ -413,6 +413,7 @@ func TestRunLinkToContainerNetMode(t *testing.T) { } func TestRunModeNetContainerHostname(t *testing.T) { + testRequires(t, ExecSupport) defer deleteAllContainers() cmd := exec.Command(dockerBinary, "run", "-i", "-d", "--name", "parent", "busybox", "top") out, _, err := runCommandWithOutput(cmd)