make test environment container messages more generic

This commit is contained in:
Ron Rennick 2021-08-17 14:58:20 -03:00
parent ccda6730c8
commit 6f179e65ee
1 changed files with 4 additions and 4 deletions

View File

@ -14,17 +14,17 @@ printf "Testing URL: $WP_BASE_URL\n\n"
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' ${WP_BASE_URL}/?pagename=ready)" != "200" ]]
do
echo "$(date) - Docker container is still being built"
echo "$(date) - Waiting for testing environment"
sleep ${DELAY_SEC}
((count++))
if [[ $count -gt ${MAX_ATTEMPTS} ]]; then
echo "$(date) - Docker container couldn't be built"
exit 1
echo "$(date) - Testing environment couldn't be found"
exit 1
fi
done
if [[ $count -gt 0 ]]; then
echo "$(date) - Docker container had been built successfully"
echo "$(date) - Testing environment is ready"
fi