Merge pull request #6707 from ulyssessouza/clean-containers-before-rm

Remove remaining containers on test_build_run
This commit is contained in:
Ulysses Souza 2019-05-15 11:44:37 +02:00 committed by GitHub
commit 75d5eb0108
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -793,6 +793,9 @@ class CLITestCase(DockerClientTestCase):
]
assert containers
for c in self.project.client.containers(all=True):
self.addCleanup(self.project.client.remove_container, c, force=True)
def test_build_shm_size_build_option(self):
pull_busybox(self.client)
self.base_dir = 'tests/fixtures/build-shm-size'