Added lines to the consistency test to print out git status in case of unstaged satages
This will help with triage when jenkins fails
Change-Id: Ib5feaa7fb1d770b232052cd6e7862c1e6124a929
diff --git a/test/test-go-proto-consistency.sh b/test/test-go-proto-consistency.sh
index 76ac7b1..9d238df 100755
--- a/test/test-go-proto-consistency.sh
+++ b/test/test-go-proto-consistency.sh
@@ -28,6 +28,7 @@
if [ "$STAGED" == "staged" ] || [ "$UNTRACKED" != "" ]; then
echo "Please commit or ignore local changes before executing this test"
+ git status
exit 1
fi
@@ -43,6 +44,7 @@
if [ "$STAGED_POST" == "staged" ] || [ "$UNTRACKED_POST" != "" ] ; then
echo "You have go proto build outputs that are not committed."
echo "Check git status and commit updated files."
+ git status
exit 1
else
echo "Test successful. All go proto build outputs are committed"