summaryrefslogtreecommitdiffstats
path: root/meta/lib/patchtest/tests/test_mbox_author.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/patchtest/tests/test_mbox_author.py')
-rw-r--r--meta/lib/patchtest/tests/test_mbox_author.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/meta/lib/patchtest/tests/test_mbox_author.py b/meta/lib/patchtest/tests/test_mbox_author.py
deleted file mode 100644
index 74bc441250..0000000000
--- a/meta/lib/patchtest/tests/test_mbox_author.py
+++ /dev/null
@@ -1,29 +0,0 @@
1# Checks related to the patch's author
2#
3# Copyright (C) 2016 Intel Corporation
4#
5# SPDX-License-Identifier: GPL-2.0-only
6
7import base
8import pyparsing
9
10class Author(base.Base):
11
12 auh_email = 'auh@auh.yoctoproject.org'
13
14 invalids = [pyparsing.Regex("^Upgrade Helper.+"),
15 pyparsing.Regex(auh_email),
16 pyparsing.Regex("uh@not\.set"),
17 pyparsing.Regex("\S+@example\.com")]
18
19
20 def test_author_valid(self):
21 for commit in self.commits:
22 for invalid in self.invalids:
23 if invalid.search_string(commit.author):
24 self.fail('Invalid author %s. Resend the series with a valid patch author' % commit.author, commit=commit)
25
26 def test_non_auh_upgrade(self):
27 for commit in self.commits:
28 if self.auh_email in commit.payload:
29 self.fail('Invalid author %s. Resend the series with a valid patch author' % self.auh_email, commit=commit)