dist/ci/docker-compose-obs: print osc output on timeout for debugging.

This commit is contained in:
Jimmy Berry 2018-01-24 01:38:40 -06:00
parent d074c5b0ce
commit 6e5eef80bd

View File

@ -43,6 +43,11 @@ fi
until $osc -q -A local api /about 2> /dev/null ; do
echo "waiting for OBS to be responsive..."
((c++)) && ((c==60)) && docker-compose logs && exit 1
# Print osc output incase of failure and container logs for debugging.
((c++)) && ((c==60)) && (
docker-compose logs
$osc -q -A local api /about
exit 1
)
sleep 1
done