Skip to content

Make sure integration-cli tests clean up#9249

Merged
LK4D4 merged 2 commits intomoby:masterfrom
tonistiigi:integration-cli-cleanup
Nov 19, 2014
Merged

Make sure integration-cli tests clean up#9249
LK4D4 merged 2 commits intomoby:masterfrom
tonistiigi:integration-cli-cleanup

Conversation

@tonistiigi
Copy link
Copy Markdown
Member

Common patterns:

  • Multiple images were built with same name but only one cleanup.
  • Containers were deleted after images.
  • Images not removed after retagging.
  • deleteImages() did not work for deleting many images together.

Signed-off-by: Tõnis Tiigi tonistiigi@gmail.com (github: tonistiigi)

This will become more important when there is progress with #9217 . Even at the moment when integration-cli is ran inside temporary container this can easily result false positives when one test leaks information to another. Currently there are many tests that do not pass if ran for a second time in same environment.

edit: pushed again diff

@jessfraz
Copy link
Copy Markdown
Contributor

awesome!!

@jessfraz
Copy link
Copy Markdown
Contributor

LGTM

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)
Pass every image name as separate argument.

Signed-off-by: Tõnis Tiigi <tonistiigi@gmail.com> (github: tonistiigi)
@tonistiigi tonistiigi force-pushed the integration-cli-cleanup branch from 193acbb to bbb245d Compare November 19, 2014 21:42
@LK4D4
Copy link
Copy Markdown
Contributor

LK4D4 commented Nov 19, 2014

LGTM

LK4D4 added a commit that referenced this pull request Nov 19, 2014
Make sure integration-cli tests clean up
@LK4D4 LK4D4 merged commit bca63b4 into moby:master Nov 19, 2014
@LK4D4
Copy link
Copy Markdown
Contributor

LK4D4 commented Nov 19, 2014

@tonistiigi Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants