devtools/docker.sh: add GO_DISCOVERY_DOCKER_SKIP_LOGS
GO_DISCOVERY_DOCKER_SKIP_LOGS is added, which can be used to skip
printing docker log output on test/**/run.sh error.
Trust: Julie Qiu
Run-TryBot: Julie Qiu
TryBot-Result: kokoro
@@ -13,6 +13,10 @@ docker_cleanup() {
}
docker_error() {
+ if $GO_DISCOVERY_DOCKER_SKIP_LOGS; then
+ echo "Skipping docker logs because GO_DISCOVERY_DOCKER_SKIP_LOGS=true."
+ return
+ fi
echo ""
echo "---------- ERROR: docker-compose db logs ----------"
dockercompose logs db
