Merge pull request #1362 from jberry-suse/docker-compose-obs-osc-debug

dist/ci/docker-compose-obs: print osc output on timeout for debugging.
This commit is contained in:
Jimmy Berry 2018-01-25 09:34:57 -06:00 committed by GitHub
commit 753f6c7a6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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