make smoke test more robust

php-fpm logs ERROR in uppercase, which wasn't detected by the previous grep
This commit is contained in:
El RIDO 2022-02-13 09:53:42 +01:00
parent 6e7cf3c019
commit 4eb4fc201e
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92

View file

@ -82,7 +82,7 @@ main() {
sleep 5 # give the services time to start up and the log to collect any errors that might occur
test "$(docker inspect --format="{{.State.Running}}" smoketest)" = true
curl --silent --show-error -o /dev/null http://127.0.0.1:8080/
if docker logs smoketest 2>&1 | grep -E "warn|emerg|fatal|panic"
if docker logs smoketest 2>&1 | grep -i -E "warn|emerg|fatal|panic|error"
then
exit 1
fi