13 lines
246 B
Bash
13 lines
246 B
Bash
|
#!/bin/bash
|
||
|
testlog() {
|
||
|
docker logs v3-territory-db-test | grep -q "database system is ready to accept connections"
|
||
|
}
|
||
|
|
||
|
testlog 2> /dev/null
|
||
|
while [ $? -ne 0 ];
|
||
|
do
|
||
|
sleep 5
|
||
|
echo "Waiting for Test DB to be up..."
|
||
|
testlog 2> /dev/null
|
||
|
done
|