aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2022-08-17 21:05:38 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2022-08-19 21:06:56 +0300
commit40ef7e93bd9a0444aa25f32944fea5885073226b (patch)
treee5dc119e77d7afdaabb4bd88380e64799ace1baf /tests
parentDescriptionCheck: change long length threshold to 80 (diff)
downloadpkgcheck-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.py12
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)