JIRA: FUNCTEST-665
In patch https://gerrit.opnfv.org/gerrit/#/c/25775/,
it set CLEAN_DOCKER_IMAGES=false to save time.
On CI job, the cleaning step is still undertaken.
Change-Id: Iaca64d3a347dafa9c87975c756ea8bcb30ae2f93
Signed-off-by: helenyao <yaohelan@huawei.com>
fi
# Remove existing images if exist
-if [[ $CLEAN_DOCKER_IMAGES ]] && [[ ! -z $(docker images | grep opnfv/functest) ]]; then
+if [[ $CLEAN_DOCKER_IMAGES == true ]] && [[ ! -z $(docker images | grep opnfv/functest) ]]; then
echo "Docker images to remove:"
docker images | head -1 && docker images | grep opnfv/functest >${redirect}
image_tags=($(docker images | grep opnfv/functest | awk '{print $2}'))