test_mbox_description.py 475 B

123456789101112131415
  1. # Checks related to the patch's commit_message
  2. #
  3. # Copyright (C) 2016 Intel Corporation
  4. #
  5. # SPDX-License-Identifier: GPL-2.0-only
  6. import base
  7. class CommitMessage(base.Base):
  8. def test_commit_message_presence(self):
  9. for commit in CommitMessage.commits:
  10. if not commit.commit_message.strip():
  11. self.fail('Mbox is missing a descriptive commit message. Please include a commit message on your patch explaining the change', commit=commit)