configuration/ci/wait-up.sh

13 lines
231 B
Bash
Raw Normal View History

2023-01-25 14:16:13 +00:00
#!/bin/bash
testlog() {
2023-03-17 10:34:17 +00:00
docker logs v3-db | grep -q "database system is ready to accept connections"
2023-01-25 14:16:13 +00:00
}
testlog 2> /dev/null
while [ $? -ne 0 ];
do
sleep 5
echo "Waiting for Test DB to be up..."
testlog 2> /dev/null
done