Merge pull request #36193 from dnephin/debug-swagger-gen-failures

Make it easier to debug swagger-gen flakes
Upstream-commit: 39fe5875407bd23a8da25951d7343c66e0cc4482
Component: engine
This commit is contained in:
Yong Tang
2018-02-02 19:54:30 -08:00
committed by GitHub

View File

@ -10,7 +10,7 @@ unset IFS
if [ ${#files[@]} -gt 0 ]; then
${SCRIPTDIR}/../generate-swagger-api.sh 2> /dev/null
# Let see if the working directory is clean
diffs="$(git status --porcelain -- api/types/ 2>/dev/null)"
diffs="$(git diff -- api/types/)"
if [ "$diffs" ]; then
{
echo 'The result of hack/generate-swagger-api.sh differs'