test: Small nitpicks with messages

This commit is contained in:
James Shubin
2017-02-09 11:16:18 -05:00
parent 90147f3dfb
commit 5b29358b37

View File

@@ -40,11 +40,11 @@ test_commit_message() {
echo Testing commit message $1
if ! git log --format=%s $1 | head -n 1 | grep -q "$travis_regex"
then
echo "Commit message should follow the following regex: '$travis_regex'"
echo "FAIL: Commit message should match the following regex: '$travis_regex'"
echo
echo "e.g:"
echo "prometheus: implement rest api"
echo "resources: svc: fix a race condition with reloads"
echo "eg:"
echo "prometheus: Implement rest api"
echo "resources: svc: Fix a race condition with reloads"
exit 1
fi
}