Skip to content
Snippets Groups Projects
Commit 091ef5a5 authored by Martin André's avatar Martin André
Browse files

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
parent f370edfb
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,8 @@ class ImagesTest(base.BaseTestCase): ...@@ -26,7 +26,8 @@ class ImagesTest(base.BaseTestCase):
def test_builds(self): def test_builds(self):
proc = Popen(['tools/build-all-docker-images', proc = Popen(['tools/build-all-docker-images',
'--testmode'], '--testmode',
'--retry 3'],
stdout=PIPE, stderr=STDOUT, bufsize=1) stdout=PIPE, stderr=STDOUT, bufsize=1)
with proc.stdout: with proc.stdout:
for line in iter(proc.stdout.readline, b''): for line in iter(proc.stdout.readline, b''):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment