Bug-Fix: Fix clean_image flag does not take effect 71/26171/3
authorhelenyao <yaohelan@huawei.com>
Mon, 19 Dec 2016 01:17:02 +0000 (20:17 -0500)
committerhelenyao <yaohelan@huawei.com>
Mon, 19 Dec 2016 02:42:47 +0000 (21:42 -0500)
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>
jjb/functest/functest-cleanup.sh

index 3c4c7f9..a1ae67d 100755 (executable)
@@ -10,7 +10,7 @@ if [[ ! -z $(docker ps -a | grep opnfv/functest) ]]; then
 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}'))