test-ansible-env-prep.sh: Do not exit if ZUUL_CHANGE_IDS is empty

Commit cf6bea2acc ("Enable cross-repo testing for OSA role tests")
added the ability to test patchsets along with their dependencies.
However, this breaks regular testing since the 'grep ^ZUUL' will return
false in case we are not in an zuul environment. As such, fix this
command to always return true.

Fixes: cf6bea2acc ("Enable cross-repo testing for OSA role tests")
Change-Id: Id8c020264e61bd77a04b41957ee1313f693328eb
This commit is contained in:
Markos Chandras 2017-04-24 23:08:49 +01:00
parent 81b052c423
commit a6c205c986
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ echo "ANSIBLE_INVENTORY: ${ANSIBLE_INVENTORY}"
# Output all the zuul parameters if they're set
if [ -z "${ZUUL_CHANGE_IDS}" ]; then
echo -e "\n### ZUUL PARAMETERS BEGIN ###\n"
printenv | grep ^ZUUL
printenv | grep ^ZUUL || true
echo -e "\n### ZUUL PARAMETERS END ###\n"
fi