Functest job single quotes typo 95/12295/2
authorjose.lausuch <jose.lausuch@ericsson.com>
Thu, 14 Apr 2016 15:42:52 +0000 (17:42 +0200)
committerjose.lausuch <jose.lausuch@ericsson.com>
Thu, 14 Apr 2016 15:46:06 +0000 (17:46 +0200)
Change-Id: I9b08704dc8a02197ec72a8c03faafc36aaa68a8e
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
jjb/functest/functest-ci-jobs.yml

index cb9d289..e2b9a10 100644 (file)
             ${cmd} >${redirect}
             docker ps -a
             sleep 5
-            container_id=$(docker ps | grep 'opnfv/functest:$DOCKER_TAG' | awk '{print $1}' | head -1)
+            container_id=$(docker ps | grep "opnfv/functest:${DOCKER_TAG}" | awk '{print $1}' | head -1)
             echo "Container ID=${container_id}"
             if [ -z ${container_id} ]; then
                 echo "Cannot find opnfv/functest container ID ${container_id}. Please check if it is existing."
             docker start ${container_id}
             sleep 5
             docker ps
-            if [ $(docker ps | grep 'opnfv/functest:$DOCKER_TAG' | wc -l) == 0 ]; then
+            if [ $(docker ps | grep "opnfv/functest:${DOCKER_TAG}" | wc -l) == 0 ]; then
                 echo "The container opnfv/functest with ID=${container_id} has not been properly started. Exiting..."
                 exit 1
             fi