diff options
author | 2022-08-17 21:05:38 +0300 | |
---|---|---|
committer | 2022-08-19 21:06:56 +0300 | |
commit | 40ef7e93bd9a0444aa25f32944fea5885073226b (patch) | |
tree | e5dc119e77d7afdaabb4bd88380e64799ace1baf /tests | |
parent | DescriptionCheck: change long length threshold to 80 (diff) | |
download | pkgcheck-40ef7e93bd9a0444aa25f32944fea5885073226b.tar.gz pkgcheck-40ef7e93bd9a0444aa25f32944fea5885073226b.tar.bz2 pkgcheck-40ef7e93bd9a0444aa25f32944fea5885073226b.zip |
BadCommitSummary: version check should be ignored for acct-* packages
When doing the checks for commit summary, add an exception to the rule
for acct-* packages, so the version added isn't a must for them.
Resolves: https://github.com/pkgcore/pkgcheck/issues/433
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/checks/test_git.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/checks/test_git.py b/tests/checks/test_git.py index 09226e12..150d8b8b 100644 --- a/tests/checks/test_git.py +++ b/tests/checks/test_git.py @@ -283,6 +283,18 @@ class TestGitCommitMessageRepoCheck(ReportTestCase): self.init_check() self.assertNoReport(self.check, self.source) + # special categories that allow not having version in new package summary + self.child_repo.create_ebuild('acct-user/pkgcheck-1') + self.child_git_repo.add_all('acct-user/pkgcheck: add user for pkgcheck', signoff=True) + self.init_check() + self.assertNoReport(self.check, self.source) + + # special categories that allow not having version in bump version summary + self.child_repo.create_ebuild('acct-user/pkgcheck-2') + self.child_git_repo.add_all('acct-user/pkgcheck: bump user for pkgcheck', signoff=True) + self.init_check() + self.assertNoReport(self.check, self.source) + # poorly prefixed commit summary self.child_repo.create_ebuild('cat/pkg-4') self.child_git_repo.add_all('version bump to 4', signoff=True) |