Skip to content

Commit

Permalink
tests/core.py: test for commit_message match
Browse files Browse the repository at this point in the history
Signed-off-by: Trevor Gamblin <[email protected]>
  • Loading branch information
threexc committed Jan 31, 2025
1 parent cc79d72 commit 0955086
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/patchtest2/tests/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ def test_mbox_commit_message_presence(target):

# Check to see if there is content before the signoff
match = patterns.endcommit_messages_regex.search(target.commit_message)
if not target.commit_message[: match.start()]:
result = "FAIL"
if match is not None:
if not target.commit_message[:match.start()]:
result = "FAIL"

return PatchtestResult(target.subject, test_name, result, reason)

0 comments on commit 0955086

Please sign in to comment.