diff --git a/test/start_stack.sh b/test/start_stack.sh index 777415dc..263e0231 100755 --- a/test/start_stack.sh +++ b/test/start_stack.sh @@ -1,5 +1,4 @@ #!/usr/bin/env sh -set -o errexit # Set env variable . ./test/env.sh # Copy heavy data for test from gcp bucket @@ -17,7 +16,7 @@ docker compose -f docker-compose.yaml up -d minio #Waiting for minio service up and running code="" code_OK="OK" -while [ "$code" != *$code_OK* ];do +while [ -n "$code" ] && [ "$code" != *$code_OK* ];do code="$(curl -IL --silent http://localhost:9000/minio/health/live | grep "^HTTP\/")" eval "sleep 5" done @@ -27,7 +26,7 @@ docker compose -f docker-compose.yaml up --build -d createbuckets elasticsearch # Waiting for elastic ready code="" code_OK="OK" -while [ "$code" != *$code_OK* ];do +while [ -n "$code" ] && [ "$code" != *$code_OK* ];do code="$(curl -IL --silent http://localhost:9200 | grep "^HTTP\/")" eval "sleep 5" done @@ -35,7 +34,7 @@ docker compose -f docker-compose-tests.yaml up --build -d # Waiting for arlas ready code="" code_OK="OK" -while [ "$code" != *$code_OK* ];do +while [ -n "$code" ] && [ "$code" != *$code_OK* ];do code="$(curl -IL --silent http://localhost:9999 | grep "^HTTP\/")" eval "sleep 5" done