1
0
mirror of https://github.com/moby/moby.git synced 2025-12-07 19:42:23 +03:00

Make sure integration-cli test clean up

Common patterns:
- Multiple images were built with same name but only one cleanup.
- Containers were deleted after images.
- Images not removed after retagging.

Signed-off-by: Tõnis Tiigi <tonistiigi@gmail.com> (github: tonistiigi)
This commit is contained in:
Tonis Tiigi
2014-11-17 18:05:49 +02:00
parent c8926bb579
commit da3d3b97eb
7 changed files with 124 additions and 43 deletions

View File

@@ -154,6 +154,9 @@ func TestCommitHardlink(t *testing.T) {
}
func TestCommitTTY(t *testing.T) {
defer deleteImages("ttytest")
defer deleteAllContainers()
cmd := exec.Command(dockerBinary, "run", "-t", "--name", "tty", "busybox", "/bin/ls")
if _, err := runCommand(cmd); err != nil {
t.Fatal(err)