make test environment container messages more generic
This commit is contained in:
parent
ccda6730c8
commit
6f179e65ee
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue