diff options
Diffstat (limited to 'k6-tests/setup.sh')
-rwxr-xr-x | k6-tests/setup.sh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/k6-tests/setup.sh b/k6-tests/setup.sh index 4805e2ea43..86f6d26acd 100755 --- a/k6-tests/setup.sh +++ b/k6-tests/setup.sh @@ -18,5 +18,13 @@ docker-compose -f ../docker-compose/docker-compose.yml --profile dmi-stub up -d echo "Waiting for CPS to start..." -READY_MESSAGE='Processing module sync fetched 0 advised cm handles from DB' -docker logs cps-and-ncmp -f | grep -m 1 "$READY_MESSAGE" >/dev/null || true +READY_MESSAGE="Processing module sync fetched 0 advised cm handles from DB" + +# Get the container IDs of the cps-and-ncmp replicas +CONTAINER_IDS=$(docker ps --filter "name=cps-and-ncmp" --format "{{.ID}}") + +# Check the logs for each container +for CONTAINER_ID in $CONTAINER_IDS; do + echo "Checking logs for container: $CONTAINER_ID" + docker logs "$CONTAINER_ID" -f | grep -m 1 "$READY_MESSAGE" >/dev/null || true +done |