From 1c1277bf760158dfd4127f239373ac4706a840f9 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Thu, 2 Mar 2017 00:41:48 +0000 Subject: [PATCH] scripts: test-bifrost.sh: Initialize the ZUUL_BRANCH variable Commit afa9951dd92e2 ("Move database setup to bifrost") moved the openstack_citest database setup from project-config to bifrost. However, we need to provide a default (even if it's an empty one) value for ZUUL_BRANCH (eg when running outside of zuul) in order to not fail due to using 'set -u'. Fixes the following error: ./scripts/test-bifrost.sh: line 76: ZUUL_BRANCH: unbound variable Change-Id: Iea1193ce0ac83013f4e41398b4e7ad9527d427ac Fixes: afa9951dd92e2 ("Move database setup to bifrost") --- scripts/test-bifrost.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/test-bifrost.sh b/scripts/test-bifrost.sh index 059fc4303..91dc1b94c 100755 --- a/scripts/test-bifrost.sh +++ b/scripts/test-bifrost.sh @@ -41,6 +41,7 @@ NOAUTH_MODE=true ENABLE_KEYSTONE=false CLOUD_CONFIG="" WAIT_FOR_DEPLOY=true +ZUUL_BRANCH=${ZUUL_BRANCH:-} # This sets up the MySQL database like it's done for all OpenStack # projects for CI testing.