configuration/ci/wait-up.sh

13 lines
218 B
Bash

#!/bin/bash
testlog() {
docker logs v3-redis | grep -q "Ready to accept connections"
}
testlog 2> /dev/null
while [ $? -ne 0 ];
do
sleep 5
echo "Waiting for Test Redis to be up..."
testlog 2> /dev/null
done