From 9de7358215ca6e3f0b394bacdd97f1e2b119b4b4 Mon Sep 17 00:00:00 2001 From: Jo¶rgen Karlsson Date: Fri, 12 Feb 2016 17:00:30 +0100 Subject: Add more debug to image build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Icfbed0433cb9cfb6f8f479fc69699d08ad49602b Signed-off-by: Jo¶rgen Karlsson --- ci/yardstick-verify | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ci') diff --git a/ci/yardstick-verify b/ci/yardstick-verify index 97bcacb17..630fed5f5 100755 --- a/ci/yardstick-verify +++ b/ci/yardstick-verify @@ -123,7 +123,11 @@ build_yardstick_image() echo echo "========== Build yardstick cloud image ==========" - sudo $(which yardstick-img-modify) $(pwd)/tools/ubuntu-server-cloudimg-modify.sh + local cmd="sudo $(which yardstick-img-modify) $(pwd)/tools/ubuntu-server-cloudimg-modify.sh" + + # Build the image. Retry once if the build fails. + $cmd || $cmd + if [ ! -f $QCOW_IMAGE ]; then echo "Failed building QCOW image" exit 1 -- cgit 1.2.3-korg