Make sure we always have the latest busybox image, so that build --pull tests don't flake.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
c4096525c2
commit
2351e11cc8
2 changed files with 6 additions and 5 deletions
|
|
@ -1,7 +1,6 @@
|
|||
from __future__ import absolute_import
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from docker import errors
|
||||
from docker.utils import version_lt
|
||||
from pytest import skip
|
||||
|
||||
|
|
@ -16,10 +15,7 @@ from compose.service import Service
|
|||
|
||||
|
||||
def pull_busybox(client):
|
||||
try:
|
||||
client.inspect_image('busybox:latest')
|
||||
except errors.APIError:
|
||||
client.pull('busybox:latest', stream=False)
|
||||
client.pull('busybox:latest', stream=False)
|
||||
|
||||
|
||||
class DockerClientTestCase(unittest.TestCase):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue