From 5431bfdc29aed3f16bb9edf6a73177616bb0617b Mon Sep 17 00:00:00 2001 From: James Shubin Date: Sat, 24 Nov 2018 04:42:50 -0500 Subject: [PATCH] test: Improve commit message tests --- test/test-commit-message.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/test-commit-message.sh b/test/test-commit-message.sh index 86af2c52..0c1e1d26 100755 --- a/test/test-commit-message.sh +++ b/test/test-commit-message.sh @@ -76,7 +76,12 @@ test_commit_message_common_bugs() { fi if git log --format=%s $1 | head -n 1 | grep -q "^resources:" then - echo 'FAIL: Commit message starts with `resources:`, did you mean `engine: resources` ?' + echo 'FAIL: Commit message starts with `resources:`, did you mean `engine: resources:` ?' + exit 1 + fi + if git log --format=%s $1 | head -n 1 | grep -q "^engine: resource:" + then + echo 'FAIL: Commit message starts with `engine: resource:`, did you mean `engine: resources:` ?' exit 1 fi if git log --format=%s $1 | head -n 1 | grep -q "^tests:"