aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin André <martin.andre@kvhasia.com>2015-06-25 22:21:04 +0900
committerMartin André <martin.andre@kvhasia.com>2015-06-25 22:29:22 +0900
commit091ef5a5cb7460e162eb66908df316b9bd790cf1 (patch)
treeba880895e998df82aea3c56f5326f025108d7555 /tests
parentf370edfb70d30de222e6abf48dda1ec91283bd39 (diff)
downloadkolla-091ef5a5cb7460e162eb66908df316b9bd790cf1.tar.gz
kolla-091ef5a5cb7460e162eb66908df316b9bd790cf1.zip
Have test retry building failed images
The image build test now retries 3 times before declaring an image as failing. This should help the gate in case of unreliable network connectivity to the mirrors. We expect the penalty of retrying to build failed images to be low thanks to docker cache. Only the failing layer should be retried. Change-Id: I15fd4926019590a150eb22dc885d0ef8cd31e7cc Closes-Bug: #1466677
Diffstat (limited to 'tests')
-rw-r--r--tests/test_images.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_images.py b/tests/test_images.py
index b3821fcf5..13b5bdb09 100644
--- a/tests/test_images.py
+++ b/tests/test_images.py
@@ -26,7 +26,8 @@ class ImagesTest(base.BaseTestCase):
def test_builds(self):
proc = Popen(['tools/build-all-docker-images',
- '--testmode'],
+ '--testmode',
+ '--retry 3'],
stdout=PIPE, stderr=STDOUT, bufsize=1)
with proc.stdout:
for line in iter(proc.stdout.readline, b''):