From 4eb4fc201ed79694e47803e8545d345dc5872340 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sun, 13 Feb 2022 09:53:42 +0100 Subject: [PATCH] make smoke test more robust php-fpm logs ERROR in uppercase, which wasn't detected by the previous grep --- buildx.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildx.sh b/buildx.sh index 42398a3..b5bcb1a 100755 --- a/buildx.sh +++ b/buildx.sh @@ -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