diff options
Diffstat (limited to 'meta/lib/patchtest/tests/test_mbox_description.py')
-rw-r--r-- | meta/lib/patchtest/tests/test_mbox_description.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/lib/patchtest/tests/test_mbox_description.py b/meta/lib/patchtest/tests/test_mbox_description.py new file mode 100644 index 0000000000..7addc6b5f7 --- /dev/null +++ b/meta/lib/patchtest/tests/test_mbox_description.py | |||
@@ -0,0 +1,17 @@ | |||
1 | # Checks related to the patch's commit_message | ||
2 | # | ||
3 | # Copyright (C) 2016 Intel Corporation | ||
4 | # | ||
5 | # SPDX-License-Identifier: GPL-2.0 | ||
6 | |||
7 | import base | ||
8 | |||
9 | class CommitMessage(base.Base): | ||
10 | |||
11 | def test_commit_message_presence(self): | ||
12 | for commit in CommitMessage.commits: | ||
13 | if not commit.commit_message.strip(): | ||
14 | self.fail('Patch is missing a descriptive commit message', | ||
15 | 'Please include a commit message on your patch explaining the change (most importantly why the change is being made)', | ||
16 | commit) | ||
17 | |||